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
bd09111f
Commit
bd09111f
authored
Jan 02, 2012
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pg_regress: Replace exit_nicely() with exit() plus atexit() hook
parent
ac7a5a3f
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
60 deletions
+50
-60
src/interfaces/ecpg/test/pg_regress_ecpg.c
src/interfaces/ecpg/test/pg_regress_ecpg.c
+3
-3
src/test/regress/pg_regress.c
src/test/regress/pg_regress.c
+46
-55
src/test/regress/pg_regress.h
src/test/regress/pg_regress.h
+0
-1
src/test/regress/pg_regress_main.c
src/test/regress/pg_regress_main.c
+1
-1
No files found.
src/interfaces/ecpg/test/pg_regress_ecpg.c
View file @
bd09111f
...
...
@@ -34,13 +34,13 @@ ecpg_filter(const char *sourcefile, const char *outfile)
if
(
!
s
)
{
fprintf
(
stderr
,
"Could not open file %s for reading
\n
"
,
sourcefile
);
exit
_nicely
(
2
);
exit
(
2
);
}
t
=
fopen
(
outfile
,
"w"
);
if
(
!
t
)
{
fprintf
(
stderr
,
"Could not open file %s for writing
\n
"
,
outfile
);
exit
_nicely
(
2
);
exit
(
2
);
}
while
(
fgets
(
linebuf
,
LINEBUFSIZE
,
s
))
...
...
@@ -148,7 +148,7 @@ ecpg_start_test(const char *testname,
{
fprintf
(
stderr
,
_
(
"could not start process for test %s
\n
"
),
testname
);
exit
_nicely
(
2
);
exit
(
2
);
}
free
(
outfile_stdout
);
...
...
src/test/regress/pg_regress.c
View file @
bd09111f
This diff is collapsed.
Click to expand it.
src/test/regress/pg_regress.h
View file @
bd09111f
...
...
@@ -56,6 +56,5 @@ int regression_main(int argc, char *argv[],
init_function
ifunc
,
test_function
tfunc
);
void
add_stringlist_item
(
_stringlist
**
listhead
,
const
char
*
str
);
PID_TYPE
spawn_process
(
const
char
*
cmdline
);
void
exit_nicely
(
int
code
);
void
replace_string
(
char
*
string
,
char
*
replace
,
char
*
replacement
);
bool
file_exists
(
const
char
*
file
);
src/test/regress/pg_regress_main.c
View file @
bd09111f
...
...
@@ -77,7 +77,7 @@ psql_start_test(const char *testname,
{
fprintf
(
stderr
,
_
(
"could not start process for test %s
\n
"
),
testname
);
exit
_nicely
(
2
);
exit
(
2
);
}
return
pid
;
...
...
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