Commit eff935ab60095c54df3d5beec63fc1b3569bdc11
Committed by
Jay Berkenbilt
1 parent
adbaa54a
Use absolute paths for large file tests
Working with absolute paths makes debugging easier, but some called scripts always need / as dir separator or won't work.
Showing
1 changed file
with
5 additions
and
0 deletions
qpdf/qtest/qpdf.test
| @@ -24,6 +24,11 @@ if ((exists $ENV{'QPDF_SKIP_TEST_COMPARE_IMAGES'}) && | @@ -24,6 +24,11 @@ if ((exists $ENV{'QPDF_SKIP_TEST_COMPARE_IMAGES'}) && | ||
| 24 | $compare_images = 0; | 24 | $compare_images = 0; |
| 25 | } | 25 | } |
| 26 | my $large_file_test_path = $ENV{'QPDF_LARGE_FILE_TEST_PATH'} || undef; | 26 | my $large_file_test_path = $ENV{'QPDF_LARGE_FILE_TEST_PATH'} || undef; |
| 27 | +if (defined($large_file_test_path)) | ||
| 28 | +{ | ||
| 29 | + $large_file_test_path = File::Spec->rel2abs($large_file_test_path); | ||
| 30 | + $large_file_test_path =~ s!\\!/!g; | ||
| 31 | +} | ||
| 27 | 32 | ||
| 28 | my $have_acroread = 0; | 33 | my $have_acroread = 0; |
| 29 | 34 |