diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2012-07-09 17:35:57 -0400 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2012-07-10 15:15:16 -0400 |
commit | fc4a8a6d748ee213f49deb2d090febbdae3121c7 (patch) | |
tree | fca38611f78b87a10e246fd6e1a16f23795d1d45 /src | |
parent | 628cbb50ba80c83917b07a7609ddec12cda172d0 (diff) | |
download | postgresql-fc4a8a6d748ee213f49deb2d090febbdae3121c7.tar.gz postgresql-fc4a8a6d748ee213f49deb2d090febbdae3121c7.zip |
perltidy adjustments to new file
Diffstat (limited to 'src')
-rw-r--r-- | src/interfaces/libpq/test/regress.pl | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/src/interfaces/libpq/test/regress.pl b/src/interfaces/libpq/test/regress.pl index f2fee620da8..1dab12282b8 100644 --- a/src/interfaces/libpq/test/regress.pl +++ b/src/interfaces/libpq/test/regress.pl @@ -27,36 +27,35 @@ open(STDERR, ">&", \*STDOUT) or die "can't dup STDOUT: $!"; # read lines from regress.in and run uri-regress on them while (<REGRESS_IN>) - { - chomp; - print "trying $_\n"; - system("./uri-regress \"$_\""); - print "\n"; +{ + chomp; + print "trying $_\n"; + system("./uri-regress \"$_\""); + print "\n"; } # restore STDOUT/ERR so we can print the outcome to the user open(STDERR, ">&", \*OLDERR) or die; # can't complain as STDERR is still duped -open(STDOUT, ">&", \*OLDOUT) or die "Can't restore STDOUT: $!"; +open(STDOUT, ">&", \*OLDOUT) or die "can't restore STDOUT: $!"; # just in case close REGRESS_IN; my $diff_status = system( - "diff -c \"$srcdir/$subdir/expected.out\" regress.out >regress.diff"); + "diff -c \"$srcdir/$subdir/expected.out\" regress.out >regress.diff"); + +print "=" x 70, "\n"; if ($diff_status == 0) - { - print "=" x 70, "\n"; - print "All tests passed\n"; - exit 0; +{ + print "All tests passed\n"; + exit 0; } else - { - print "=" x 70, "\n"; - print <<EOF; +{ + print <<EOF; FAILED: the test result differs from the expected output Review the difference in "$subdir/regress.diff" EOF - print "=" x 70, "\n"; - exit 1; + exit 1; } |