diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2014-06-05 17:54:00 -0300 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2014-06-05 17:54:41 -0300 |
commit | f988e25c6864a9467eb53262cbd718752204f80f (patch) | |
tree | b3f3b6df1c80c752f3cce35a1544332cb4cd8815 | |
parent | 7a2d0e6187b37d3f7f5f5153018695d35740afa2 (diff) | |
download | kmod-f988e25c6864a9467eb53262cbd718752204f80f.tar.gz kmod-f988e25c6864a9467eb53262cbd718752204f80f.tar.bz2 kmod-f988e25c6864a9467eb53262cbd718752204f80f.zip |
testsuite: separate testcases on log
-rw-r--r-- | testsuite/testsuite.c | 8 |
1 files 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; } |