From f988e25c6864a9467eb53262cbd718752204f80f Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Thu, 5 Jun 2014 17:54:00 -0300 Subject: [PATCH] testsuite: separate testcases on log --- testsuite/testsuite.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/testsuite/testsuite.c b/testsuite/testsuite.c index 9ccdcb7..9330e88 100644 --- a/testsuite/testsuite.c +++ b/testsuite/testsuite.c @@ -737,7 +737,8 @@ static inline int test_run_parent(const struct test *t, int fdout[2], pid = wait(&err); if (pid == -1) { ERR("error waitpid(): %m\n"); - return EXIT_FAILURE; + err = EXIT_FAILURE; + goto exit; } } while (!WIFEXITED(err) && !WIFSIGNALED(err)); @@ -751,7 +752,8 @@ 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 t->expected_fail ? EXIT_SUCCESS : EXIT_FAILURE; + err = t->expected_fail ? EXIT_SUCCESS : EXIT_FAILURE; + goto exit; } if (matchout) @@ -807,6 +809,8 @@ static inline int test_run_parent(const struct test *t, int fdout[2], } } +exit: + LOG("------\n"); return err; } -- 2.7.4