Skip to content

Commit

Permalink
Skip tests without pdftocairo
Browse files Browse the repository at this point in the history
  • Loading branch information
takahashim committed Feb 27, 2022
1 parent 7e51867 commit 202dfa1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/test_img_math.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def test_defer_math_image_pathname
end

def test_defer_math_image
unless support_latex_in_tests?
unless support_latex_in_tests? && support_pdftocairo_in_tests?
$stderr.puts 'skip test_defer_math_image'
return true
end
Expand Down Expand Up @@ -108,4 +108,13 @@ def support_latex_in_tests?
false
end
end

def support_pdftocairo_in_tests?
begin
`pdftocairo -v`
true
rescue StandardError
false
end
end
end

0 comments on commit 202dfa1

Please sign in to comment.