gem_wait_render_timeout: use igt_assert_cmpint
authorBen Widawsky <benjamin.widawsky@intel.com>
Wed, 19 Mar 2014 18:40:58 +0000 (11:40 -0700)
committerBen Widawsky <benjamin.widawsky@intel.com>
Wed, 19 Mar 2014 18:42:07 +0000 (11:42 -0700)
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
tests/gem_wait_render_timeout.c

index 2971752..3d082cd 100644 (file)
@@ -153,7 +153,7 @@ igt_simple_main
                        iter <<= 1;
        } while (!done && iter < 1000000);
 
-       igt_assert(iter < 1000000);
+       igt_assert_cmpint(iter, <, 1000000);
 
        printf("%d iters is enough work\n", iter);
        gem_quiescent_gpu(fd);
@@ -171,7 +171,7 @@ igt_simple_main
 
        igt_assert(gem_bo_wait_timeout(fd, dst2->handle, &timeout) == 0);
        igt_assert(gem_bo_busy(fd, dst2->handle) == false);
-       igt_assert(timeout != 0);
+       igt_assert_cmpint(timeout, !=, 0);
        if (timeout ==  (ENOUGH_WORK_IN_SECONDS * NSEC_PER_SEC))
                printf("Buffer was already done!\n");
        else {