Commit a1fbb4bd9781129fc5998e055ef47bdf28e4f0d8

Authored by Jay Berkenbilt
1 parent 8a66e7db

update test suite

git-svn-id: svn+q:///qpdf/trunk@675 71b93d88-0707-0410-a8cf-f5a4172ac649
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
... ... @@ -118,3 +118,4 @@ unable to filter 0
118 118 QPDF_String non-trivial UTF-16 0
119 119 QPDF xref overwrite object 0
120 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 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 &lt;= 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
  1 +checking fax-decode-parms.pdf
  2 +File is not encrypted
  3 +File is not linearized
  4 +No errors found
... ...
qpdf/qtest/qpdf/fax-decode-parms.pdf 0 → 100644
No preview for this file type