lib/drmtest: Print info when children died due to signals
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 29 Aug 2013 19:44:48 +0000 (21:44 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 29 Aug 2013 19:44:48 +0000 (21:44 +0200)
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
lib/drmtest.c

index 81c5fca..b1ba7e7 100644 (file)
@@ -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();
                }
        }