X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ffailtest%2Ffailtest.c;h=56ace7431847c5ac9fd059b77d4b9271958a3fb7;hp=1dad0864aa372fa3b7ead07a081f9e125f192bbc;hb=acb6106ca2778d74af91f9b92bc32df179195b6b;hpb=fbae37ba91ec230e34be564084099726cc3a9d47 diff --git a/ccan/failtest/failtest.c b/ccan/failtest/failtest.c index 1dad0864..56ace743 100644 --- a/ccan/failtest/failtest.c +++ b/ccan/failtest/failtest.c @@ -488,7 +488,10 @@ static NORETURN void failtest_cleanup(bool forced_cleanup, int status) } free_everything(); - tell_parent(SUCCESS); + if (status == 0) + tell_parent(SUCCESS); + else + tell_parent(FAILURE); exit(status); }