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,6 +145,8 @@ QPDF_Stream::filterable(std::vector<std::string>& filters, | ||
| 145 | { | 145 | { |
| 146 | // Ignore for now -- some filter types, like CCITTFaxDecode, | 146 | // Ignore for now -- some filter types, like CCITTFaxDecode, |
| 147 | // use types other than dictionary for this. | 147 | // use types other than dictionary for this. |
| 148 | + QTC::TC("qpdf", "QPDF_Stream ignore non-dictionary DecodeParms"); | ||
| 149 | + | ||
| 148 | filterable = false; | 150 | filterable = false; |
| 149 | } | 151 | } |
| 150 | 152 |
qpdf/qpdf.testcov
| @@ -118,3 +118,4 @@ unable to filter 0 | @@ -118,3 +118,4 @@ unable to filter 0 | ||
| 118 | QPDF_String non-trivial UTF-16 0 | 118 | QPDF_String non-trivial UTF-16 0 |
| 119 | QPDF xref overwrite object 0 | 119 | QPDF xref overwrite object 0 |
| 120 | QPDF decoding error warning 0 | 120 | QPDF decoding error warning 0 |
| 121 | +QPDF_Stream ignore non-dictionary DecodeParms 0 |
qpdf/qtest/qpdf.test
| @@ -81,7 +81,7 @@ flush_tiff_cache(); | @@ -81,7 +81,7 @@ flush_tiff_cache(); | ||
| 81 | show_ntests(); | 81 | show_ntests(); |
| 82 | # ---------- | 82 | # ---------- |
| 83 | $td->notify("--- Miscellaneous Tests ---"); | 83 | $td->notify("--- Miscellaneous Tests ---"); |
| 84 | -$n_tests += 3; | 84 | +$n_tests += 4; |
| 85 | 85 | ||
| 86 | foreach (my $i = 1; $i <= 3; ++$i) | 86 | foreach (my $i = 1; $i <= 3; ++$i) |
| 87 | { | 87 | { |
| @@ -91,6 +91,13 @@ foreach (my $i = 1; $i <= 3; ++$i) | @@ -91,6 +91,13 @@ foreach (my $i = 1; $i <= 3; ++$i) | ||
| 91 | $td->NORMALIZE_NEWLINES); | 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 | show_ntests(); | 101 | show_ntests(); |
| 95 | # ---------- | 102 | # ---------- |
| 96 | $td->notify("--- Error Condition Tests ---"); | 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