diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2019-02-19 08:57:12 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2019-02-20 13:58:04 +0100 |
commit | 4494052aa3c8f95c2b21acc4a1273fc4431bb71e (patch) | |
tree | 64500cbaa1b1767e0e759b2f3cf0481a656ed192 /lib/tests/igt_segfault.c | |
parent | 4d0d81a2176227a7432762ae095ba386f3c8aba0 (diff) |
lib/tests: Add header for common helpers
Start with internal_assert, more will follow. While at it, use
internal_assert everywhere (except where we check exit status, those
will get dedicated assert checks).
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
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 | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/tests/igt_segfault.c b/lib/tests/igt_segfault.c index 86fee535..bfbbff56 100644 --- a/lib/tests/igt_segfault.c +++ b/lib/tests/igt_segfault.c @@ -38,19 +38,12 @@ #include <stdlib.h> #include <sys/wait.h> #include <sys/types.h> -#include <assert.h> #include <errno.h> #include "drmtest.h" #include "igt_core.h" -/* - * We need to hide assert from the cocci igt test refactor spatch. - * - * IMPORTANT: Test infrastructure tests are the only valid places where using - * assert is allowed. - */ -#define internal_assert assert +#include "igt_tests_common.h" bool simple; bool runa; |