mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-02 22:50:20 +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
8f54319f7a
commit
d42fda60d5
@ -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);
|
||||
|
||||
# Self-referential object stream
|
||||
$td->runtest("self-referential object stream",
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user