summaryrefslogtreecommitdiff
path: root/tests/gem_dummy_reloc_loop.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-05-14 09:56:53 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-05-14 09:56:53 +0200
commit0b7ce4ac2929ea56dfde508d551163a5304c66d8 (patch)
tree7af13f919437cc28ab61dbae3fee42a159fcfb6f /tests/gem_dummy_reloc_loop.c
parente624fa8a2e1a31494c6e47a65e378e480882422d (diff)
tests: Use igt macros more
Often just folding together of the common if (cond) printf; abort|igt_skip|igt_fail; pattern. But in a few cases I've ripped out more since the igt macros will already print the condition and errno. A few tests where more work (like ripping out return codes en masse) is needed left as-is. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_dummy_reloc_loop.c')
-rw-r--r--tests/gem_dummy_reloc_loop.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/gem_dummy_reloc_loop.c b/tests/gem_dummy_reloc_loop.c
index 21c8c578..4fe07860 100644
--- a/tests/gem_dummy_reloc_loop.c
+++ b/tests/gem_dummy_reloc_loop.c
@@ -205,11 +205,8 @@ igt_main
{
unsigned int target_flink;
char buffer_name[32];
- if (dri_bo_flink(target_buffer, &target_flink)) {
- igt_info("fail to get flink for target buffer\n");
- igt_assert_f(0, "fail to create global "
- "gem_handle for target buffer\n");
- }
+ igt_assert(dri_bo_flink(target_buffer, &target_flink) == 0);
+
for (i = 0; i < NUM_FD; i++) {
sprintf(buffer_name, "Target buffer %d\n", i);
mfd[i] = drm_open_any();