Commit acb6106c authored by Rusty Russell's avatar Rusty Russell

failtest: stop when leak detected.

Don't continue when we report a leak: tell the parent it's a failure.
parent fbae37ba
...@@ -488,7 +488,10 @@ static NORETURN void failtest_cleanup(bool forced_cleanup, int status) ...@@ -488,7 +488,10 @@ static NORETURN void failtest_cleanup(bool forced_cleanup, int status)
} }
free_everything(); free_everything();
tell_parent(SUCCESS); if (status == 0)
tell_parent(SUCCESS);
else
tell_parent(FAILURE);
exit(status); exit(status);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment