projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5069685
)
failtest: call failtest_exit_check even in non-failing parent.
author
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 15 Feb 2011 12:59:28 +0000
(23:29 +1030)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 15 Feb 2011 12:59:28 +0000
(23:29 +1030)
ccan/failtest/failtest.c
patch
|
blob
|
history
diff --git
a/ccan/failtest/failtest.c
b/ccan/failtest/failtest.c
index dcf034ccffe7594f90ada21fdc916bf978a90546..ccc89b22f344bbdde2b193f6c33cb91c26f75692 100644
(file)
--- a/
ccan/failtest/failtest.c
+++ b/
ccan/failtest/failtest.c
@@
-980,16
+980,16
@@
void failtest_exit(int status)
{
int i;
- if (control_fd == -1) {
- free_everything();
- exit(status);
- }
-
if (failtest_exit_check) {
if (!failtest_exit_check(history, history_num))
child_fail(NULL, 0, "failtest_exit_check failed\n");
}
+ if (control_fd == -1) {
+ free_everything();
+ exit(status);
+ }
+
/* Cleanup everything, in reverse order. */
for (i = history_num - 1; i >= 0; i--)
if (history[i].cleanup)