summaryrefslogtreecommitdiff
path: root/tests/gem_mmap_offset_exhaustion.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_mmap_offset_exhaustion.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_mmap_offset_exhaustion.c')
-rw-r--r--tests/gem_mmap_offset_exhaustion.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/gem_mmap_offset_exhaustion.c b/tests/gem_mmap_offset_exhaustion.c
index d5939ecb..914fe6eb 100644
--- a/tests/gem_mmap_offset_exhaustion.c
+++ b/tests/gem_mmap_offset_exhaustion.c
@@ -59,11 +59,7 @@ create_and_map_bo(int fd)
handle = gem_create(fd, OBJECT_SIZE);
ptr = gem_mmap(fd, handle, OBJECT_SIZE, PROT_READ | PROT_WRITE);
-
- if (!ptr) {
- fprintf(stderr, "mmap failed\n");
- igt_assert(ptr);
- }
+ igt_assert(ptr);
/* touch it to force it into the gtt */
*ptr = 0;