diff options
Diffstat (limited to 'qpdf/qtest/output-redirection.test')
-rw-r--r-- | qpdf/qtest/output-redirection.test | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/qpdf/qtest/output-redirection.test b/qpdf/qtest/output-redirection.test new file mode 100644 index 00000000..13ad88a0 --- /dev/null +++ b/qpdf/qtest/output-redirection.test @@ -0,0 +1,32 @@ +#!/usr/bin/env perl +require 5.008; +use warnings; +use strict; + +unshift(@INC, '.'); +require qpdf_test_helpers; + +chdir("qpdf") or die "chdir testdir failed: $!\n"; + +require TestDriver; + +cleanup(); + +my $td = new TestDriver('output-redirection'); + +my $n_tests = 2; + +$td->runtest("error/output redirection to null", + {$td->COMMAND => "test_driver 12 linearized-and-warnings.pdf"}, + {$td->FILE => "linearized-and-warnings-1.out", + $td->EXIT_STATUS => 0}, + $td->NORMALIZE_NEWLINES); + +$td->runtest("error/output redirection to strings", + {$td->COMMAND => "test_driver 13 linearized-and-warnings.pdf"}, + {$td->FILE => "linearized-and-warnings-2.out", + $td->EXIT_STATUS => 0}, + $td->NORMALIZE_NEWLINES); + +cleanup(); +$td->report($n_tests); |