aboutsummaryrefslogtreecommitdiffstats
path: root/qpdf/qtest/attachments.test
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2023-12-20 00:28:36 +0100
committerJay Berkenbilt <ejb@ql.org>2023-12-20 21:21:32 +0100
commitc67634afa045b9b1e54c85942c14982ac68678e7 (patch)
treea82a55496ba9497204ebe1bdbbe9f90e3812c9c0 /qpdf/qtest/attachments.test
parent49621ef5a825fc0a600284fa2c33775b330e2007 (diff)
downloadqpdf-c67634afa045b9b1e54c85942c14982ac68678e7.tar.zst
Fix tests when running comparison tool is adequate
Fix all tests where the only required fix is to run qpdf-test-compare instead of doing a simple file comparison.
Diffstat (limited to 'qpdf/qtest/attachments.test')
-rw-r--r--qpdf/qtest/attachments.test8
1 files changed, 4 insertions, 4 deletions
diff --git a/qpdf/qtest/attachments.test b/qpdf/qtest/attachments.test
index 0d32ea0b..ccb985e1 100644
--- a/qpdf/qtest/attachments.test
+++ b/qpdf/qtest/attachments.test
@@ -207,8 +207,8 @@ $td->runtest("remove multiple attachments",
$td->EXIT_STATUS => 0},
$td->NORMALIZE_NEWLINES);
$td->runtest("check output",
- {$td->FILE => "a.pdf"},
- {$td->FILE => "remove-multiple-attachments.pdf"});
+ {$td->COMMAND => "qpdf-test-compare a.pdf remove-multiple-attachments.pdf"},
+ {$td->FILE => "remove-multiple-attachments.pdf", $td->EXIT_STATUS => 0});
$td->runtest("remove multiple attachments (json)",
{$td->COMMAND =>
"qpdf --job-json-file=remove-multiple-attachments.json"},
@@ -216,8 +216,8 @@ $td->runtest("remove multiple attachments (json)",
$td->EXIT_STATUS => 0},
$td->NORMALIZE_NEWLINES);
$td->runtest("check output",
- {$td->FILE => "b.pdf"},
- {$td->FILE => "remove-multiple-attachments.pdf"});
+ {$td->COMMAND => "qpdf-test-compare b.pdf remove-multiple-attachments.pdf"},
+ {$td->FILE => "remove-multiple-attachments.pdf", $td->EXIT_STATUS => 0});
cleanup();
$td->report($n_tests);