From a734af681b62a8fc49d51c1a78f28ace1e35a513 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 5 Mar 2022 08:18:54 -0500 Subject: Run qpdf from path rather than environment variable in tests With cmake, we are customizing the path for each test suite so we can ensure we get the right qpdf without having to use an environment variable. --- examples/qtest/linearize.test | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'examples/qtest/linearize.test') diff --git a/examples/qtest/linearize.test b/examples/qtest/linearize.test index 711e697b..fde6e944 100644 --- a/examples/qtest/linearize.test +++ b/examples/qtest/linearize.test @@ -11,15 +11,13 @@ cleanup(); my $td = new TestDriver('linearize'); -my $qpdf = $ENV{'QPDF_BIN'} or die; - $td->runtest("linearize", {$td->COMMAND => "pdf-linearize input.pdf '' a.pdf"}, {$td->REGEXP => '(?s).*input\.pdf progress: \d+\%.*', $td->EXIT_STATUS => 0}); $td->runtest("check", - {$td->COMMAND => "$qpdf --check a.pdf"}, + {$td->COMMAND => "qpdf --check a.pdf"}, {$td->FILE => "check.out", $td->EXIT_STATUS => 0}, $td->NORMALIZE_NEWLINES); -- cgit v1.2.3-54-g00ecf