diff options
author | Jay Berkenbilt <ejb@ql.org> | 2023-12-20 19:28:42 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2023-12-20 21:46:20 +0100 |
commit | 7e679ab8b68a38aae8374ef28f999afd94bf5124 (patch) | |
tree | d1d4f7028d152e90fcd5ef44b0b685251e1a2dd9 /qpdf/qtest/xref-streams.test | |
parent | d61612a2e54d266d8fc4f55042080b780984272e (diff) | |
download | qpdf-7e679ab8b68a38aae8374ef28f999afd94bf5124.tar.zst |
Avoid depending on exact xref stream offsets
For the modified test case, we care about successful recovery, not
about the exact offsets. Add a filter to remove the specific numbers
from show-xref.
Diffstat (limited to 'qpdf/qtest/xref-streams.test')
-rw-r--r-- | qpdf/qtest/xref-streams.test | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qpdf/qtest/xref-streams.test b/qpdf/qtest/xref-streams.test index 8d8e8bd9..68640bdf 100644 --- a/qpdf/qtest/xref-streams.test +++ b/qpdf/qtest/xref-streams.test @@ -28,7 +28,8 @@ $td->runtest("recover xref with short size", $td->EXIT_STATUS => 3}, $td->NORMALIZE_NEWLINES); $td->runtest("show new xref stream", - {$td->COMMAND => "qpdf --show-xref a.pdf"}, + {$td->COMMAND => "qpdf --show-xref a.pdf", + $td->FILTER => "perl filter-xref-offsets.pl"}, {$td->FILE => "xref-with-short-size-new.out", $td->EXIT_STATUS => 0}, $td->NORMALIZE_NEWLINES); |