Skip to content

Commit

Permalink
Merge pull request #1804 from kmuto/skip-test-without-pdftocairo
Browse files Browse the repository at this point in the history
Skip tests without pdftocairo
  • Loading branch information
takahashim committed Feb 27, 2022
2 parents 7e51867 + 202dfa1 commit e90bd83
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 e90bd83

Please sign in to comment.