summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-29 21:44:48 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-29 21:44:48 +0200
commita0aa8f1a2c927090d8e505565bcab035d605b711 (patch)
treeb2a0baea9d756d675f2f2bf9cdb0e2198b15a4ca
parent8f5d54162086d9832bcd574af155e86a1a4d743f (diff)
lib/drmtest: Print info when children died due to signals
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--lib/drmtest.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c
index 81c5fca9..b1ba7e79 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -1003,7 +1003,12 @@ void igt_waitchildren(void)
if (status != 0) {
if (WIFEXITED(status))
igt_fail(WEXITSTATUS(status));
- else
+ else if (WIFSIGNALED(status)) {
+ printf("child %i died with signal %i, %s\n",
+ nc, WTERMSIG(status),
+ strsignal(WTERMSIG(status)));
+ igt_fail(99);
+ } else
abort();
}
}