Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
7da24bcb
Commit
7da24bcb
authored
Jul 20, 2006
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print out diff status code when we think there's a hard failure.
May help in debugging behavior on Windows.
parent
c3104376
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
src/test/regress/pg_regress.c
src/test/regress/pg_regress.c
+9
-4
No files found.
src/test/regress/pg_regress.c
View file @
7da24bcb
...
...
@@ -11,7 +11,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.
8 2006/07/20 02:15:17
tgl Exp $
* $PostgreSQL: pgsql/src/test/regress/pg_regress.c,v 1.
9 2006/07/20 03:30:58
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -203,6 +203,10 @@ stop_postmaster(void)
/* We use pg_ctl to issue the kill and wait for stop */
char
buf
[
MAXPGPATH
*
2
];
/* On Windows, system() seems not to force fflush, so... */
fflush
(
stdout
);
fflush
(
stderr
);
snprintf
(
buf
,
sizeof
(
buf
),
SYSTEMQUOTE
"
\"
%s/pg_ctl
\"
stop -D
\"
%s/data
\"
-s -m fast"
SYSTEMQUOTE
,
bindir
,
temp_install
);
...
...
@@ -843,7 +847,7 @@ results_differ(const char *testname)
r
=
system
(
cmd
);
if
(
!
WIFEXITED
(
r
)
||
WEXITSTATUS
(
r
)
>
1
)
{
fprintf
(
stderr
,
_
(
"diff command failed
: %s
\n
"
)
,
cmd
);
fprintf
(
stderr
,
_
(
"diff command failed
with status %d: %s
\n
"
),
r
,
cmd
);
exit_nicely
(
2
);
}
...
...
@@ -872,7 +876,8 @@ results_differ(const char *testname)
r
=
system
(
cmd
);
if
(
!
WIFEXITED
(
r
)
||
WEXITSTATUS
(
r
)
>
1
)
{
fprintf
(
stderr
,
_
(
"diff command failed: %s
\n
"
),
cmd
);
fprintf
(
stderr
,
_
(
"diff command failed with status %d: %s
\n
"
),
r
,
cmd
);
exit_nicely
(
2
);
}
...
...
@@ -902,7 +907,7 @@ results_differ(const char *testname)
r
=
system
(
cmd
);
if
(
!
WIFEXITED
(
r
)
||
WEXITSTATUS
(
r
)
>
1
)
{
fprintf
(
stderr
,
_
(
"diff command failed
: %s
\n
"
)
,
cmd
);
fprintf
(
stderr
,
_
(
"diff command failed
with status %d: %s
\n
"
),
r
,
cmd
);
exit_nicely
(
2
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment