From: Lucas De Marchi Date: Thu, 21 Mar 2013 05:22:15 +0000 (-0300) Subject: testsuite: Exit with success on signal if test has expected_fail=true X-Git-Tag: v13~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=489c04ddecb63e12b0fe6d45efd7376762e106f1;p=thirdparty%2Fkmod.git testsuite: Exit with success on signal if test has expected_fail=true --- diff --git a/testsuite/testsuite.c b/testsuite/testsuite.c index 0b642e27..9e7cf032 100644 --- a/testsuite/testsuite.c +++ b/testsuite/testsuite.c @@ -573,7 +573,7 @@ static inline int test_run_parent(const struct test *t, int fdout[2], } else if (WIFSIGNALED(err)) { ERR("'%s' [%u] terminated by signal %d (%s)\n", t->name, pid, WTERMSIG(err), strsignal(WTERMSIG(err))); - return EXIT_FAILURE; + return t->expected_fail ? EXIT_SUCCESS : EXIT_FAILURE; } if (matchout)