From 489c04ddecb63e12b0fe6d45efd7376762e106f1 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Thu, 21 Mar 2013 02:22:15 -0300 Subject: [PATCH] testsuite: Exit with success on signal if test has expected_fail=true --- testsuite/testsuite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/testsuite.c b/testsuite/testsuite.c index 0b642e2..9e7cf03 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) -- 2.7.4