mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-03 07:12:28 +00:00
update test suite
git-svn-id: svn+q:///qpdf/trunk@675 71b93d88-0707-0410-a8cf-f5a4172ac649
This commit is contained in:
parent
8a66e7dbc0
commit
a1fbb4bd97
@ -145,6 +145,8 @@ QPDF_Stream::filterable(std::vector<std::string>& filters,
|
||||
{
|
||||
// Ignore for now -- some filter types, like CCITTFaxDecode,
|
||||
// use types other than dictionary for this.
|
||||
QTC::TC("qpdf", "QPDF_Stream ignore non-dictionary DecodeParms");
|
||||
|
||||
filterable = false;
|
||||
}
|
||||
|
||||
|
@ -118,3 +118,4 @@ unable to filter 0
|
||||
QPDF_String non-trivial UTF-16 0
|
||||
QPDF xref overwrite object 0
|
||||
QPDF decoding error warning 0
|
||||
QPDF_Stream ignore non-dictionary DecodeParms 0
|
||||
|
@ -81,7 +81,7 @@ flush_tiff_cache();
|
||||
show_ntests();
|
||||
# ----------
|
||||
$td->notify("--- Miscellaneous Tests ---");
|
||||
$n_tests += 3;
|
||||
$n_tests += 4;
|
||||
|
||||
foreach (my $i = 1; $i <= 3; ++$i)
|
||||
{
|
||||
@ -91,6 +91,13 @@ foreach (my $i = 1; $i <= 3; ++$i)
|
||||
$td->NORMALIZE_NEWLINES);
|
||||
}
|
||||
|
||||
# Make sure we ignore decode parameters that we don't understand
|
||||
$td->runtest("unknown decode parameters",
|
||||
{$td->COMMAND => "qpdf --check fax-decode-parms.pdf"},
|
||||
{$td->FILE => "fax-decode-parms.out",
|
||||
$td->EXIT_STATUS => 0},
|
||||
$td->NORMALIZE_NEWLINES);
|
||||
|
||||
show_ntests();
|
||||
# ----------
|
||||
$td->notify("--- Error Condition Tests ---");
|
||||
|
4
qpdf/qtest/qpdf/fax-decode-parms.out
Normal file
4
qpdf/qtest/qpdf/fax-decode-parms.out
Normal file
@ -0,0 +1,4 @@
|
||||
checking fax-decode-parms.pdf
|
||||
File is not encrypted
|
||||
File is not linearized
|
||||
No errors found
|
BIN
qpdf/qtest/qpdf/fax-decode-parms.pdf
Normal file
BIN
qpdf/qtest/qpdf/fax-decode-parms.pdf
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user