]> granicus.if.org Git - postgresql/commitdiff
perltidy adjustments to new file
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 9 Jul 2012 21:35:57 +0000 (17:35 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 10 Jul 2012 19:15:16 +0000 (15:15 -0400)
src/interfaces/libpq/test/regress.pl

index f2fee620da8e6a6a441b0fd8451b56dff1d2b166..1dab12282b85389016a93a2f1d0edfd234bdd747 100644 (file)
@@ -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;
 }