diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-09-02 08:08:29 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-09-02 08:08:29 +0200 |
commit | 6f118bf96a4d7236f8324dd53cf0c85390605bb0 (patch) | |
tree | 64c9adf38384113c09ae11e1f7b85a5a5c48d556 | |
parent | 8eaa0982d02e13d7d8d1e1a4601bbeb8adb531ae (diff) |
lib/drmtest: Improve output when igt_waitchildren fails
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | lib/drmtest.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c index b1ba7e79..c0fda727 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -1001,15 +1001,19 @@ void igt_waitchildren(void) ; if (status != 0) { - if (WIFEXITED(status)) + if (WIFEXITED(status)) { + printf("child %i failed with exit status %i\n", + nc, WEXITSTATUS(status)); igt_fail(WEXITSTATUS(status)); - else if (WIFSIGNALED(status)) { + } else if (WIFSIGNALED(status)) { printf("child %i died with signal %i, %s\n", nc, WTERMSIG(status), strsignal(WTERMSIG(status))); igt_fail(99); - } else + } else { + printf("Unhandled failure in child %i\n", nc); abort(); + } } } |