diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-09-25 14:36:59 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-09-25 14:37:07 +0200 |
commit | f3c54d0cb4744af9d58b5be45f574b625bbc8231 (patch) | |
tree | 9c4bd1af155ee0b1b51382a617109aa2e5f119b2 /tests/gem_cs_tlb.c | |
parent | 88ad6d7be8ab5741b7019a535952145c96577c9c (diff) |
tests: use igt_assert/igt_require more
With the new _f variants we can replace almost all of them.
Also remove a ton of checks for argc != 1, they're a bit useless ...
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_cs_tlb.c')
-rw-r--r-- | tests/gem_cs_tlb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/gem_cs_tlb.c b/tests/gem_cs_tlb.c index 870821b5..490b6d3c 100644 --- a/tests/gem_cs_tlb.c +++ b/tests/gem_cs_tlb.c @@ -125,8 +125,7 @@ static void run_on_ring(int fd, unsigned ring_id, const char *ring_name) gem_close(fd, handle); } - if (exec(fd, handle_new, split, >t_offset_new, 0)) - igt_fail(1); + igt_assert(exec(fd, handle_new, split, >t_offset_new, 0) == 0); if (split > 0) { /* Check that we've managed to collide in the tlb. */ |