mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-14 00:34:03 +00:00
86f2d3449c
git-svn-id: svn+q:///qpdf/trunk@685 71b93d88-0707-0410-a8cf-f5a4172ac649
29 lines
527 B
Perl
29 lines
527 B
Perl
#!/usr/bin/env perl
|
|
|
|
require 5.008;
|
|
BEGIN { $^W = 1; }
|
|
use strict;
|
|
|
|
chdir("qexc") or die "chdir qexc failed: $!\n";
|
|
|
|
require TestDriver;
|
|
|
|
my $td = new TestDriver('qexc');
|
|
|
|
my @tests =
|
|
(['general exception', 2],
|
|
['internal error', 3],
|
|
['system exception', 2],
|
|
);
|
|
|
|
for (my $i = 0; $i < scalar(@tests); ++$i)
|
|
{
|
|
$td->runtest($tests[$i]->[0],
|
|
{$td->COMMAND => "qexc $i"},
|
|
{$td->FILE => "test$i.out",
|
|
$td->EXIT_STATUS => $tests[$i]->[1]},
|
|
$td->NORMALIZE_NEWLINES);
|
|
}
|
|
|
|
$td->report(scalar(@tests));
|