# And skip even running these
my $deparse_skips;
+my $deparse_skip_file = '../Porting/deparse-skips.txt';
+
# directories with special sets of test switches
my %dir_to_switch =
(base => '',
my $tested_files = 0;
my $totmax = 0;
my %failed_tests;
+ my @unexpected_pass; # files where deparse-skips.txt says fail but passed
my $toolnm; # valgrind, cachegrind, perf
while (my $test = shift @tests) {
if (!$failure) {
# Wait, it didn't fail? Great news! Tell someone!
$failure = "FAILED--all tests passed but test should have failed";
+ push @unexpected_pass, $test;
} else {
# Bah, still failing. Mask it.
print "${te}skipped\n";
for my $test ( sort keys %failed_tests ) {
print "\t$test\n";
}
+
+ if (@unexpected_pass) {
+ print <<EOF;
+
+The following scripts were expected to fail under -deparse (at least
+according to $deparse_skip_file), but unexpectedly succeeded:
+EOF
+ print "\t$_\n" for sort @unexpected_pass;
+ print "\n";
+ }
+
warn <<'SHRDLU_1';
### Since not all tests were successful, you may want to run some of
### them individually and examine any diagnostic messages they produce.
my @deparse_failures;
my @deparse_skips;
- my $f = '../Porting/deparse-skips.txt';
+ my $f = $deparse_skip_file;
my $skips;
if (!open($skips, '<', $f)) {