diff options
Diffstat (limited to 'qpdf/qtest/qpdf.test')
-rw-r--r-- | qpdf/qtest/qpdf.test | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/qpdf/qtest/qpdf.test b/qpdf/qtest/qpdf.test index 45ed8c46..14abda34 100644 --- a/qpdf/qtest/qpdf.test +++ b/qpdf/qtest/qpdf.test @@ -206,7 +206,7 @@ $td->runtest("remove page we don't have", show_ntests(); # ---------- $td->notify("--- Miscellaneous Tests ---"); -$n_tests += 86; +$n_tests += 88; $td->runtest("qpdf version", {$td->COMMAND => "qpdf --version"}, @@ -604,6 +604,20 @@ $td->runtest("no trailing space in xref table", {$td->FILE => "no-space-in-xref.out", $td->EXIT_STATUS => 0}, $td->NORMALIZE_NEWLINES); +# An array is split across multiple content streams starting object +# 42. This was reported in github issue 73. The file is modified from +# that example. +$td->runtest("parse split content stream", + {$td->COMMAND => "qpdf --check split-content-stream.pdf"}, + {$td->FILE => "split-content-stream.out", $td->EXIT_STATUS => 0}, + $td->NORMALIZE_NEWLINES); +$td->runtest("split content stream errors", + {$td->COMMAND => "qpdf --check split-content-stream-errors.pdf"}, + {$td->FILE => "split-content-stream-errors.out", + $td->EXIT_STATUS => 3}, + $td->NORMALIZE_NEWLINES); + + show_ntests(); # ---------- $td->notify("--- Numeric range parsing tests ---"); |