mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-23 11:28:56 +00:00
33 lines
826 B
Perl
33 lines
826 B
Perl
#!/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);
|