aboutsummaryrefslogtreecommitdiffstats
path: root/qpdf/qtest/qpdf.test
diff options
context:
space:
mode:
Diffstat (limited to 'qpdf/qtest/qpdf.test')
-rw-r--r--qpdf/qtest/qpdf.test13
1 files changed, 12 insertions, 1 deletions
diff --git a/qpdf/qtest/qpdf.test b/qpdf/qtest/qpdf.test
index 69d5a5de..877c3f5e 100644
--- a/qpdf/qtest/qpdf.test
+++ b/qpdf/qtest/qpdf.test
@@ -1400,7 +1400,7 @@ $td->runtest("C API: no recovery",
show_ntests();
# ----------
$td->notify("--- Recovery Tests ---");
-$n_tests += @badfiles + 7;
+$n_tests += @badfiles + 9;
# Recovery tests. These are mostly after-the-fact -- when recovery
# was implemented, some degree of recovery was possible on many of the
@@ -1469,6 +1469,17 @@ $td->runtest("recoverable xref errors",
$td->EXIT_STATUS => 3},
$td->NORMALIZE_NEWLINES);
+$td->runtest("xref loop with append",
+ {$td->COMMAND =>
+ "qpdf --deterministic-id append-xref-loop.pdf a.pdf"},
+ {$td->FILE => "append-xref-loop.out",
+ $td->EXIT_STATUS => 3},
+ $td->NORMALIZE_NEWLINES);
+
+$td->runtest("check output",
+ {$td->FILE => "a.pdf"},
+ {$td->FILE => "append-xref-loop-fixed.pdf"});
+
show_ntests();
# ----------
$td->notify("--- Basic Parsing Tests ---");