Commit d01c1ba1c6114ed1b032dc01aa340aa9a465d3e6
1 parent
8fbba4d4
better acroread check
git-svn-id: svn+q:///qpdf/trunk@926 71b93d88-0707-0410-a8cf-f5a4172ac649
Showing
1 changed file
with
4 additions
and
8 deletions
qpdf/qtest/qpdf.test
| ... | ... | @@ -26,15 +26,11 @@ my $have_acroread = 0; |
| 26 | 26 | |
| 27 | 27 | if ($compare_images) |
| 28 | 28 | { |
| 29 | - # check for acroread | |
| 30 | - my @path = split(':', $ENV{'PATH'}); | |
| 31 | - foreach my $p (@path) | |
| 29 | + # check for working acroread | |
| 30 | + if (system("acroread -toPostScript -pairs good1.pdf a.ps" . | |
| 31 | + " >/dev/null 2>&1") == 0) | |
| 32 | 32 | { |
| 33 | - if (-x "$p/acroread") | |
| 34 | - { | |
| 35 | - $have_acroread = 1; | |
| 36 | - last; | |
| 37 | - } | |
| 33 | + $have_acroread = 1; | |
| 38 | 34 | } |
| 39 | 35 | } |
| 40 | 36 | ... | ... |