From 3c1555a62296e4e28ababba3913838f49fd7b918 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20Sch=C3=B6ning?= Date: Fri, 20 Nov 2015 16:33:27 +0100 Subject: [PATCH] Explicitly invoke shell scripts with sh Shebang doesn't work well on Windows. --- qpdf/qtest/qpdf.test | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qpdf/qtest/qpdf.test b/qpdf/qtest/qpdf.test index 7c377ea4..cfb3fa0d 100644 --- a/qpdf/qtest/qpdf.test +++ b/qpdf/qtest/qpdf.test @@ -374,7 +374,7 @@ $td->runtest("check output", {$td->FILE => "test14-out.pdf"}); # Test 14 also exercises writing to memory without static ID. $td->runtest("check non-static ID version", - {$td->COMMAND => "./diff-ignore-ID-version a.pdf b.pdf"}, + {$td->COMMAND => "sh ./diff-ignore-ID-version a.pdf b.pdf"}, {$td->STRING => "okay\n", $td->EXIT_STATUS => 0}, $td->NORMALIZE_NEWLINES); @@ -1551,7 +1551,7 @@ foreach my $d (@encrypted_files) { $td->runtest("check against base", {$td->COMMAND => - "./diff-encrypted $enc_base.enc $file.enc"}, + "sh ./diff-encrypted $enc_base.enc $file.enc"}, {$td->STRING => "okay\n", $td->EXIT_STATUS => 0}, $td->NORMALIZE_NEWLINES); @@ -1860,7 +1860,7 @@ $td->runtest("convert to qdf", " --password=owner --no-original-object-ids"}, {$td->STRING => "", $td->EXIT_STATUS => 0}); $td->runtest("compare qdf", - {$td->COMMAND => "./diff-ignore-ID-version a.qdf b.qdf"}, + {$td->COMMAND => "sh ./diff-ignore-ID-version a.qdf b.qdf"}, {$td->STRING => "okay\n", $td->EXIT_STATUS => 0}, $td->NORMALIZE_NEWLINES); $td->runtest("copy encryption with qpdf", @@ -1881,7 +1881,7 @@ $td->runtest("convert to qdf", " --password=owner --no-original-object-ids"}, {$td->STRING => "", $td->EXIT_STATUS => 0}); $td->runtest("compare qdf", - {$td->COMMAND => "./diff-ignore-ID-version a.qdf c.qdf"}, + {$td->COMMAND => "sh ./diff-ignore-ID-version a.qdf c.qdf"}, {$td->STRING => "okay\n", $td->EXIT_STATUS => 0}, $td->NORMALIZE_NEWLINES);