summaryrefslogtreecommitdiff
path: root/tests/gem_ctx_bad_exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gem_ctx_bad_exec.c')
-rw-r--r--tests/gem_ctx_bad_exec.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/gem_ctx_bad_exec.c b/tests/gem_ctx_bad_exec.c
index cfd35a0e..adb49814 100644
--- a/tests/gem_ctx_bad_exec.c
+++ b/tests/gem_ctx_bad_exec.c
@@ -35,7 +35,6 @@
#include <stdint.h>
#include <stdio.h>
#include <string.h>
-#include <assert.h>
#include <fcntl.h>
#include <inttypes.h>
#include <errno.h>
@@ -119,9 +118,9 @@ int main(int argc, char *argv[])
handle = gem_create(fd, 4096);
gem_write(fd, handle, 0, batch, sizeof(batch));
- assert(exec(fd, handle, I915_EXEC_RENDER, ctx_id) == 0);
- assert(exec(fd, handle, I915_EXEC_BSD, ctx_id) != 0);
- assert(exec(fd, handle, I915_EXEC_BLT, ctx_id) != 0);
+ igt_assert(exec(fd, handle, I915_EXEC_RENDER, ctx_id) == 0);
+ igt_assert(exec(fd, handle, I915_EXEC_BSD, ctx_id) != 0);
+ igt_assert(exec(fd, handle, I915_EXEC_BLT, ctx_id) != 0);
exit(EXIT_SUCCESS);
}