From a0aa8f1a2c927090d8e505565bcab035d605b711 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Thu, 29 Aug 2013 21:44:48 +0200 Subject: [PATCH] lib/drmtest: Print info when children died due to signals Signed-off-by: Daniel Vetter --- lib/drmtest.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/drmtest.c b/lib/drmtest.c index 81c5fca..b1ba7e7 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(); } } -- 2.7.4