diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2019-02-13 11:35:43 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2019-02-15 10:36:40 +0100 |
commit | ab5baafb4994bda219d87f6c15b562a9f24a203a (patch) | |
tree | 5b302f7a2f5664580344ee77012b8a1fadca4d5d /lib/tests/igt_segfault.c | |
parent | 395eaffd7e1390c9d6043c2980dc14ce3e08b154 (diff) |
lib/tests: Drop NIH exit status handling
Spotted by Chris.
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'lib/tests/igt_segfault.c')
-rw-r--r-- | lib/tests/igt_segfault.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/tests/igt_segfault.c b/lib/tests/igt_segfault.c index d07677da..86fee535 100644 --- a/lib/tests/igt_segfault.c +++ b/lib/tests/igt_segfault.c @@ -116,20 +116,20 @@ int main(int argc, char **argv) runc=false; igt_info("Simple test.\n"); fflush(stdout); - internal_assert(do_fork() == SIGSEGV + 128); + internal_assert(WTERMSIG(do_fork()) == SIGSEGV); /* Test crash in a single subtest is reported */ simple = false; igt_info("Single subtest.\n"); fflush(stdout); - internal_assert(do_fork() == SIGSEGV + 128); + internal_assert(WTERMSIG(do_fork()) == SIGSEGV); /* Test crash in a subtest following a pass is reported */ simple = false; runa=true; igt_info("Passing then crashing subtest.\n"); fflush(stdout); - internal_assert(do_fork() == SIGSEGV + 128); + internal_assert(WTERMSIG(do_fork()) == SIGSEGV); /* Test crash in a subtest preceeding a pass is reported */ simple = false; @@ -137,7 +137,7 @@ int main(int argc, char **argv) runc=true; igt_info("Crashing then passing subtest.\n"); fflush(stdout); - internal_assert(do_fork() == SIGSEGV + 128); + internal_assert(WTERMSIG(do_fork()) == SIGSEGV); return 0; } |