diff options
Diffstat (limited to 'qpdf/qtest/qpdf.test')
-rw-r--r-- | qpdf/qtest/qpdf.test | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/qpdf/qtest/qpdf.test b/qpdf/qtest/qpdf.test index 0069fe4a..e1db8b89 100644 --- a/qpdf/qtest/qpdf.test +++ b/qpdf/qtest/qpdf.test @@ -2855,7 +2855,7 @@ my @to_linearize = ); $n_tests += @linearized_files + 6; -$n_tests += (3 * @to_linearize * 5) + 6; +$n_tests += (3 * @to_linearize * 5) + 8; foreach my $base (@linearized_files) { @@ -2939,6 +2939,17 @@ foreach my $base (@to_linearize) } } +# Verify that we get proper exit codes for files with only warnings +$td->runtest("linearization warnings check", + {$td->COMMAND => "qpdf --check lin3.pdf"}, + {$td->FILE => "lin3-check.out", $td->EXIT_STATUS => 3}, + $td->NORMALIZE_NEWLINES); +$td->runtest("linearization warnings check-linearization", + {$td->COMMAND => "qpdf --check-linearization lin3.pdf"}, + {$td->FILE => "lin3-check-linearization.out", + $td->EXIT_STATUS => 3}, + $td->NORMALIZE_NEWLINES); + show_ntests(); # ---------- $td->notify("--- Encryption Tests ---"); |