diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-08-13 12:35:58 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-08-13 15:07:44 +0200 |
commit | 83440953e50d1c46217ce9bdcd74aa9a4671913d (patch) | |
tree | 4e94f8444c479e4e59be2b760dba01d3aa561ed2 /tests/gem_fenced_exec_thrash.c | |
parent | 2371c79bbd69f46c2849298fb7f216a5b9a21aa8 (diff) |
tests: s/assert/igt_assert
Just a wholesale rollout for now, we can refine later on.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_fenced_exec_thrash.c')
-rw-r--r-- | tests/gem_fenced_exec_thrash.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/gem_fenced_exec_thrash.c b/tests/gem_fenced_exec_thrash.c index cffc2053..58b2545b 100644 --- a/tests/gem_fenced_exec_thrash.c +++ b/tests/gem_fenced_exec_thrash.c @@ -31,7 +31,6 @@ #include <sys/ioctl.h> #include <stdio.h> #include <string.h> -#include <assert.h> #include <fcntl.h> #include <inttypes.h> #include <drm.h> @@ -92,7 +91,7 @@ static int get_num_fences(int fd) val = gem_available_fences(fd); printf ("total %d fences\n", val); - assert(val > 4); + igt_assert(val > 4); return val; } @@ -143,14 +142,14 @@ static void run_test(int fd, int num_fences, int expected_errno) ret = drmIoctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, &execbuf[0]); - assert(expected_errno ? + igt_assert(expected_errno ? ret < 0 && errno == expected_errno : ret == 0); ret = drmIoctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, &execbuf[1]); - assert(expected_errno ? + igt_assert(expected_errno ? ret < 0 && errno == expected_errno : ret == 0); } while (--loop); @@ -169,7 +168,7 @@ main(int argc, char **argv) num_fences = get_num_fences(fd); devid = intel_get_drm_devid(fd); - assert(num_fences <= MAX_FENCES); + igt_assert(num_fences <= MAX_FENCES); run_test(fd, num_fences - 2, 0); run_test(fd, num_fences + 1, intel_gen(devid) >= 4 ? 0 : EDEADLK); |