File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed
Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 66
77my $printed_this_test = 1;
88my $current_test = " " ;
9+ my $output_file = " " ;
10+ my $descriptor_file = " " ;
911
1012while (<LOG>) {
1113 chomp ;
1214 if (/ ^Test '(.+)'/ ) {
1315 $current_test = $1 ;
1416 $printed_this_test = 0;
17+ } elsif (/ Descriptor:\s +([^\s ]+)/ ) {
18+ $descriptor_file = $1 ;
19+ } elsif (/ Output:\s +([^\s ]+)/ ) {
20+ $output_file = $1 ;
1521 } elsif (/ \[ FAILED\]\s *$ / ) {
1622 if (0 == $printed_this_test ) {
1723 $printed_this_test = 1;
1824 print " \n\n " ;
1925 print " Failed test: $current_test \n " ;
20- my $outf = ` sed -n '2p' $current_test /test.desc` ;
21- $outf =~ s /\. .*$/ .out/ ;
22- system (" cat $current_test /$outf " );
23- print " \n\n Failed test.desc lines:\n " ;
26+ system (" cat $current_test /$output_file " );
27+ print " \n\n Failed $descriptor_file lines:\n " ;
2428 }
2529 print " $_ \n " ;
2630 }
Original file line number Diff line number Diff line change @@ -71,7 +71,9 @@ ($$$$$)
7171
7272 $options =~ s / $ign// g if (defined ($ign ));
7373
74- my $output = $input ;
74+ my $descriptor = $test ;
75+ $descriptor =~ s / ^.*\/ // ;
76+ my $output = $descriptor ;
7577 $output =~ s /\. [^.]*$/ .out/ ;
7678
7779 if ($output eq $input ) {
@@ -82,6 +84,7 @@ ($$$$$)
8284 print LOG " Test '$name '\n " ;
8385 print LOG " Level: $level \n " ;
8486 print LOG " Input: $input \n " ;
87+ print LOG " Descriptor: $descriptor \n " ;
8588 print LOG " Output: $output \n " ;
8689 print LOG " Options: $options \n " ;
8790 print LOG " Results:\n " ;
You can’t perform that action at this time.
0 commit comments