File tree Expand file tree Collapse file tree 1 file changed +15
-16
lines changed
src/interfaces/libpq/test Expand file tree Collapse file tree 1 file changed +15
-16
lines changed Original file line number Diff line number Diff line change 2727
2828# read lines from regress.in and run uri-regress on them
2929while (<REGRESS_IN>)
30- {
31- chomp ;
32- print " trying $_ \n " ;
33- system (" ./uri-regress \" $_ \" " );
34- print " \n " ;
30+ {
31+ chomp ;
32+ print " trying $_ \n " ;
33+ system (" ./uri-regress \" $_ \" " );
34+ print " \n " ;
3535}
3636
3737# restore STDOUT/ERR so we can print the outcome to the user
3838open (STDERR , " >&" , \*OLDERR) or die ; # can't complain as STDERR is still duped
39- open (STDOUT , " >&" , \*OLDOUT) or die " Can 't restore STDOUT: $! " ;
39+ open (STDOUT , " >&" , \*OLDOUT) or die " can 't restore STDOUT: $! " ;
4040
4141# just in case
4242close REGRESS_IN;
4343
4444my $diff_status = system (
45- " diff -c \" $srcdir /$subdir /expected.out\" regress.out >regress.diff" );
45+ " diff -c \" $srcdir /$subdir /expected.out\" regress.out >regress.diff" );
46+
47+ print " =" x 70 , " \n " ;
4648if ($diff_status == 0)
47- {
48- print " =" x 70 , " \n " ;
49- print " All tests passed\n " ;
50- exit 0;
49+ {
50+ print " All tests passed\n " ;
51+ exit 0;
5152}
5253else
53- {
54- print " =" x 70 , " \n " ;
55- print <<EOF ;
54+ {
55+ print <<EOF ;
5656FAILED: the test result differs from the expected output
5757
5858Review the difference in "$subdir /regress.diff"
5959EOF
60- print " =" x 70 , " \n " ;
61- exit 1;
60+ exit 1;
6261}
You can’t perform that action at this time.
0 commit comments