mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-22 19:08:59 +00:00
Amend "recover file with xref stream" test
Change first xref stream dictionary to point to an invalid root in order to detect failure to recover the last valid trailer.
This commit is contained in:
parent
973edb4f2d
commit
065bb582a3
@ -102,10 +102,11 @@ $td->runtest("recover file with xref stream",
|
||||
{$td->COMMAND => "qpdf --static-id --compress-streams=n" .
|
||||
" recover-xref-stream.pdf a.pdf"},
|
||||
{$td->FILE => "recover-xref-stream.out", $td->EXIT_STATUS => 3},
|
||||
$td->NORMALIZE_NEWLINES);
|
||||
$td->EXPECT_FAILURE);
|
||||
$td->runtest("check file",
|
||||
{$td->FILE => "a.pdf"},
|
||||
{$td->FILE => "recover-xref-stream-recovered.pdf"});
|
||||
{$td->FILE => "recover-xref-stream-recovered.pdf"},
|
||||
$td->EXPECT_FAILURE);
|
||||
|
||||
cleanup();
|
||||
$td->report(calc_ntests($n_tests, $n_compare_pdfs));
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user