Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
fc4a8a6d
Commit
fc4a8a6d
authored
12 years ago
by
Alvaro Herrera
Browse files
Options
Downloads
Patches
Plain Diff
perltidy adjustments to new file
parent
628cbb50
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/interfaces/libpq/test/regress.pl
+15
-16
15 additions, 16 deletions
src/interfaces/libpq/test/regress.pl
with
15 additions
and
16 deletions
src/interfaces/libpq/test/regress.pl
+
15
−
16
View file @
fc4a8a6d
...
@@ -27,36 +27,35 @@ open(STDERR, ">&", \*STDOUT) or die "can't dup STDOUT: $!";
...
@@ -27,36 +27,35 @@ open(STDERR, ">&", \*STDOUT) or die "can't dup STDOUT: $!";
# read lines from regress.in and run uri-regress on them
# read lines from regress.in and run uri-regress on them
while
(
<
REGRESS_IN
>
)
while
(
<
REGRESS_IN
>
)
{
{
chomp
;
chomp
;
print
"
trying
$_
\n
";
print
"
trying
$_
\n
";
system
("
./uri-regress
\"
$_
\"
");
system
("
./uri-regress
\"
$_
\"
");
print
"
\n
";
print
"
\n
";
}
}
# restore STDOUT/ERR so we can print the outcome to the user
# 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
(
STDERR
,
"
>&
",
\
*OLDERR
)
or
die
;
# can't complain as STDERR is still duped
open
(
STDOUT
,
"
>&
",
\
*OLDOUT
)
or
die
"
C
an't restore STDOUT: $!
";
open
(
STDOUT
,
"
>&
",
\
*OLDOUT
)
or
die
"
c
an't restore STDOUT: $!
";
# just in case
# just in case
close
REGRESS_IN
;
close
REGRESS_IN
;
my
$diff_status
=
system
(
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
)
if
(
$diff_status
==
0
)
{
{
print
"
=
"
x
70
,
"
\n
";
print
"
All tests passed
\n
";
print
"
All tests passed
\n
";
exit
0
;
exit
0
;
}
}
else
else
{
{
print
"
=
"
x
70
,
"
\n
";
print
<<EOF;
print
<<EOF;
FAILED: the test result differs from the expected output
FAILED: the test result differs from the expected output
Review the difference in "$subdir/regress.diff"
Review the difference in "$subdir/regress.diff"
EOF
EOF
print
"
=
"
x
70
,
"
\n
";
exit
1
;
exit
1
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment