Commit dc863a10b2b568b9e77066f6e7d603979aa903ce

Authored by Jay Berkenbilt
1 parent bfbd97b9

Change test output file from out.pdf to a.pdf for cleanup

The cleanup() method automatically removes certain files, but not
out.pdf. Using a.pdf prevents the file from being left behind after
the tests run.
Showing 1 changed file with 4 additions and 4 deletions
qpdf/qtest/page-errors.test
@@ -21,18 +21,18 @@ $td->runtest("handle page no with contents", @@ -21,18 +21,18 @@ $td->runtest("handle page no with contents",
21 {$td->FILE => "page-no-content.out", $td->EXIT_STATUS => 3}, 21 {$td->FILE => "page-no-content.out", $td->EXIT_STATUS => 3},
22 $td->NORMALIZE_NEWLINES); 22 $td->NORMALIZE_NEWLINES);
23 $td->runtest("handle page with missing MediaBox", 23 $td->runtest("handle page with missing MediaBox",
24 - {$td->COMMAND => "qpdf --static-id --empty --pages page-no-content.pdf -- out.pdf"}, 24 + {$td->COMMAND => "qpdf --static-id --empty --pages page-no-content.pdf -- a.pdf"},
25 {$td->FILE => "page-missing-mediabox.out", $td->EXIT_STATUS => 3}, 25 {$td->FILE => "page-missing-mediabox.out", $td->EXIT_STATUS => 3},
26 $td->NORMALIZE_NEWLINES); 26 $td->NORMALIZE_NEWLINES);
27 $td->runtest("check output", 27 $td->runtest("check output",
28 - {$td->FILE => "out.pdf"}, 28 + {$td->FILE => "a.pdf"},
29 {$td->FILE => "page-missing-mediabox-out.pdf"}); 29 {$td->FILE => "page-missing-mediabox-out.pdf"});
30 $td->runtest("handle page with inherited MediaBox", 30 $td->runtest("handle page with inherited MediaBox",
31 - {$td->COMMAND => "qpdf --static-id --empty --pages page-inherit-mediabox.pdf -- out.pdf"}, 31 + {$td->COMMAND => "qpdf --static-id --empty --pages page-inherit-mediabox.pdf -- a.pdf"},
32 {$td->STRING => "", $td->EXIT_STATUS => 0}, 32 {$td->STRING => "", $td->EXIT_STATUS => 0},
33 $td->NORMALIZE_NEWLINES); 33 $td->NORMALIZE_NEWLINES);
34 $td->runtest("check output", 34 $td->runtest("check output",
35 - {$td->FILE => "out.pdf"}, 35 + {$td->FILE => "a.pdf"},
36 {$td->FILE => "page-inherit-mediabox-out.pdf"}); 36 {$td->FILE => "page-inherit-mediabox-out.pdf"});
37 $td->runtest("check no type key for page nodes", 37 $td->runtest("check no type key for page nodes",
38 {$td->COMMAND => "qpdf --check no-pages-types.pdf"}, 38 {$td->COMMAND => "qpdf --check no-pages-types.pdf"},