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_assert.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_assert.c')
-rw-r--r-- | lib/tests/igt_assert.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/tests/igt_assert.c b/lib/tests/igt_assert.c index 306b1fb8..0082fda1 100644 --- a/lib/tests/igt_assert.c +++ b/lib/tests/igt_assert.c @@ -79,10 +79,7 @@ static int do_fork(void) errno == EINTR) ; - if(WIFSIGNALED(status)) - return WTERMSIG(status) + 128; - - return WEXITSTATUS(status); + return status; } } @@ -161,7 +158,7 @@ igt_main test_to_run = test_cmpint_negative; ret = do_fork(); igt_subtest("igt_cmpint_negative") - internal_assert(ret == IGT_EXIT_FAILURE); + internal_assert(WEXITSTATUS(ret) == IGT_EXIT_FAILURE); igt_subtest("igt_assert_fd") test_fd(); @@ -169,5 +166,5 @@ igt_main test_to_run = test_fd_negative; ret = do_fork(); igt_subtest("igt_assert_fd_negative") - internal_assert(ret == IGT_EXIT_FAILURE); + internal_assert(WEXITSTATUS(ret) == IGT_EXIT_FAILURE); } |