2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-04 11:20:53 +00:00

Update qtest version to 1.6

This commit is contained in:
Jay Berkenbilt 2019-12-17 11:30:03 -05:00
parent e35e4099a2
commit 18e558e721
2 changed files with 15 additions and 4 deletions

View File

@ -33,7 +33,7 @@ require TestDriver;
if ((@ARGV == 1) && ($ARGV[0] eq '--version')) if ((@ARGV == 1) && ($ARGV[0] eq '--version'))
{ {
print "$whoami version 1.5\n"; print "$whoami version 1.6\n";
exit 0; exit 0;
} }
if ((@ARGV == 1) && ($ARGV[0] eq '--print-path')) if ((@ARGV == 1) && ($ARGV[0] eq '--print-path'))

View File

@ -711,9 +711,20 @@ sub runtest
elsif (defined $in_file) elsif (defined $in_file)
{ {
&QTC::TC("testdriver", "TestDriver input file"); &QTC::TC("testdriver", "TestDriver input file");
open($in, '<', $in_file) or if (! open($in, '<', $in_file))
croak +(+__PACKAGE__, {
"->runtest: unable to read from input file $in_file: $!\n"); # If the input file is not found, generate a string to use
# as input, and make the string different each run to
# prevent sloppy commiting of the string as the expected
# output. This prevents complete failure in cases when the
# input file is not found, such as when one test's input
# file is generated by something that may have failed
# earlier.
my $not_found = "qtest, pid=$$: input file $in_file not found\n";
open($in, '<', \$not_found) or
croak +(+__PACKAGE__,
"->runtest: unable to read from input file $in_file: $!\n");
}
} }
elsif (defined $in_command) elsif (defined $in_command)
{ {