Commit a1fbb4bd9781129fc5998e055ef47bdf28e4f0d8
1 parent
8a66e7db
update test suite
git-svn-id: svn+q:///qpdf/trunk@675 71b93d88-0707-0410-a8cf-f5a4172ac649
Showing
5 changed files
with
15 additions
and
1 deletions
libqpdf/QPDF_Stream.cc
| ... | ... | @@ -145,6 +145,8 @@ QPDF_Stream::filterable(std::vector<std::string>& filters, |
| 145 | 145 | { |
| 146 | 146 | // Ignore for now -- some filter types, like CCITTFaxDecode, |
| 147 | 147 | // use types other than dictionary for this. |
| 148 | + QTC::TC("qpdf", "QPDF_Stream ignore non-dictionary DecodeParms"); | |
| 149 | + | |
| 148 | 150 | filterable = false; |
| 149 | 151 | } |
| 150 | 152 | ... | ... |
qpdf/qpdf.testcov
qpdf/qtest/qpdf.test
| ... | ... | @@ -81,7 +81,7 @@ flush_tiff_cache(); |
| 81 | 81 | show_ntests(); |
| 82 | 82 | # ---------- |
| 83 | 83 | $td->notify("--- Miscellaneous Tests ---"); |
| 84 | -$n_tests += 3; | |
| 84 | +$n_tests += 4; | |
| 85 | 85 | |
| 86 | 86 | foreach (my $i = 1; $i <= 3; ++$i) |
| 87 | 87 | { |
| ... | ... | @@ -91,6 +91,13 @@ foreach (my $i = 1; $i <= 3; ++$i) |
| 91 | 91 | $td->NORMALIZE_NEWLINES); |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | +# Make sure we ignore decode parameters that we don't understand | |
| 95 | +$td->runtest("unknown decode parameters", | |
| 96 | + {$td->COMMAND => "qpdf --check fax-decode-parms.pdf"}, | |
| 97 | + {$td->FILE => "fax-decode-parms.out", | |
| 98 | + $td->EXIT_STATUS => 0}, | |
| 99 | + $td->NORMALIZE_NEWLINES); | |
| 100 | + | |
| 94 | 101 | show_ntests(); |
| 95 | 102 | # ---------- |
| 96 | 103 | $td->notify("--- Error Condition Tests ---"); | ... | ... |
qpdf/qtest/qpdf/fax-decode-parms.out
0 → 100644
qpdf/qtest/qpdf/fax-decode-parms.pdf
0 → 100644
No preview for this file type