diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2019-02-19 08:57:13 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2019-02-20 13:58:04 +0100 |
commit | 1c068c4f11a8f0b12a9b49b54c212315d8f1b347 (patch) | |
tree | 69d1a4797540fccf70372b10aa435cc9877f3ff9 /lib/tests/igt_assert.c | |
parent | 4494052aa3c8f95c2b21acc4a1273fc4431bb71e (diff) |
lib/tests: add internal_assert_wexited/wsignaled
And convert everything over.
igt_segfault needed a bit of care to differentiate between a real
death-by-signal and igt_exit mapping a child process signal death to
an exit code.
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/tests/igt_assert.c')
-rw-r--r-- | lib/tests/igt_assert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tests/igt_assert.c b/lib/tests/igt_assert.c index e3c1ec49..632e1597 100644 --- a/lib/tests/igt_assert.c +++ b/lib/tests/igt_assert.c @@ -151,7 +151,7 @@ igt_main test_to_run = test_cmpint_negative; ret = do_fork(); igt_subtest("igt_cmpint_negative") - internal_assert(WEXITSTATUS(ret) == IGT_EXIT_FAILURE); + internal_assert_wexited(ret, IGT_EXIT_FAILURE); igt_subtest("igt_assert_fd") test_fd(); @@ -159,5 +159,5 @@ igt_main test_to_run = test_fd_negative; ret = do_fork(); igt_subtest("igt_assert_fd_negative") - internal_assert(WEXITSTATUS(ret) == IGT_EXIT_FAILURE); + internal_assert_wexited(ret, IGT_EXIT_FAILURE); } |