Commit 4fe6f61def5bee74a3f190d51e2a7c3d41a76ae4
1 parent
4eccb9d8
Add missing test case from long ago
I noticed a test output file that was not accessed in the test suite and added a test case for it.
Showing
2 changed files
with
10 additions
and
2 deletions
qpdf/qtest/qpdf.test
| ... | ... | @@ -932,7 +932,7 @@ for (my $n = 16; $n <= 19; ++$n) |
| 932 | 932 | show_ntests(); |
| 933 | 933 | # ---------- |
| 934 | 934 | $td->notify("--- Specific File Tests ---"); |
| 935 | -$n_tests += 4; | |
| 935 | +$n_tests += 5; | |
| 936 | 936 | $n_compare_pdfs += 1; |
| 937 | 937 | |
| 938 | 938 | # Special PDF files that caused problems at some point |
| ... | ... | @@ -961,6 +961,10 @@ $td->runtest("damaged stream", |
| 961 | 961 | {$td->COMMAND => "qpdf --check damaged-stream.pdf"}, |
| 962 | 962 | {$td->FILE => "damaged-stream.out", $td->EXIT_STATUS => 3}, |
| 963 | 963 | $td->NORMALIZE_NEWLINES); |
| 964 | +$td->runtest("damaged stream (C)", | |
| 965 | + {$td->COMMAND => "qpdf-ctest 2 damaged-stream.pdf '' a.pdf"}, | |
| 966 | + {$td->FILE => "damaged-stream-c-check.out", $td->EXIT_STATUS => 0}, | |
| 967 | + $td->NORMALIZE_NEWLINES); | |
| 964 | 968 | |
| 965 | 969 | show_ntests(); |
| 966 | 970 | # ---------- | ... | ... |
qpdf/qtest/qpdf/damaged-stream-c-check.out
| 1 | -warning: damaged-stream.pdf: offset 426: error decoding stream data for object 5 0: LZWDecoder: bad code received | |
| 1 | +warning: damaged-stream.pdf (file position 426): error decoding stream data for object 5 0: LZWDecoder: bad code received | |
| 2 | + code: 5 | |
| 3 | + file: damaged-stream.pdf | |
| 4 | + pos : 426 | |
| 5 | + text: error decoding stream data for object 5 0: LZWDecoder: bad code received | ... | ... |