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_reloc_vs_gpu.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_reloc_vs_gpu.c')
-rw-r--r-- | tests/gem_reloc_vs_gpu.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/gem_reloc_vs_gpu.c b/tests/gem_reloc_vs_gpu.c index 90ba8602..c563a014 100644 --- a/tests/gem_reloc_vs_gpu.c +++ b/tests/gem_reloc_vs_gpu.c @@ -28,7 +28,6 @@ #include <stdlib.h> #include <stdio.h> #include <string.h> -#include <assert.h> #include <fcntl.h> #include <inttypes.h> #include <errno.h> @@ -93,7 +92,7 @@ static void create_special_bo(void) BATCH(CMD_POLY_STIPPLE_OFFSET << 16); BATCH(0); } - assert(len % 2 == 0); + igt_assert(len % 2 == 0); BATCH(MI_NOOP); BATCH(MI_BATCH_BUFFER_END); @@ -176,7 +175,7 @@ int main(int argc, char **argv) for (i = 0; i < NUM_TARGET_BOS; i++) { pc_target_bo[i] = drm_intel_bo_alloc(bufmgr, "special batch", 4096, 4096); emit_dummy_load(pitch); - assert(pc_target_bo[i]->offset == 0); + igt_assert(pc_target_bo[i]->offset == 0); drm_intel_bo_emit_reloc(special_bo, special_reloc_ofs, pc_target_bo[i], 0, |