8000 perltidy adjustments to new file · postgrespro/postgres_cluster@fc4a8a6 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fc4a8a6

Browse files
committed
perltidy adjustments to new file
1 parent 628cbb5 commit fc4a8a6

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

src/interfaces/libpq/test/regress.pl

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,36 +27,35 @@
2727

2828
# read lines from regress.in and run uri-regress on them
2929
while (<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
3838
open(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
4242
close REGRESS_IN;
4343

4444
my $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";
4648
if ($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
}
5253
else
53-
{
54-
print "=" x 70, "\n";
55-
print <<EOF;
54+
{
55+
print <<EOF;
5656
FAILED: the test result differs from the expected output
5757
5858
Review the difference in "$subdir/regress.diff"
5959
EOF
60-
print "=" x 70, "\n";
61-
exit 1;
60+
exit 1;
6261
}

0 commit comments

Comments
 (0)
0