summaryrefslogtreecommitdiff
path: root/tests/gem_cs_tlb.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-12 09:04:24 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-12 11:10:26 +0200
commit9f6365e4eacc7aa07fc3f9524500d1e217b61bb5 (patch)
tree1592d8b751616a705e2a5e4b9729b8baf4604f66 /tests/gem_cs_tlb.c
parent40ea6f4ea89dbf5a326677ea9482cc48743d2543 (diff)
lib/drmtest: Add drmtest_subtest_block macro
Doesn't do more than an if (drmtest_run_test(name)) right now, but as soon as we get a bit of infrastructure to handle test failures and skipping, this will get more interesting. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_cs_tlb.c')
-rw-r--r--tests/gem_cs_tlb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/gem_cs_tlb.c b/tests/gem_cs_tlb.c
index 05e78c23..081b6f24 100644
--- a/tests/gem_cs_tlb.c
+++ b/tests/gem_cs_tlb.c
@@ -164,18 +164,18 @@ int main(int argc, char **argv)
sleep(5); /* needs more serious ducttape */
}
- if (drmtest_run_subtest("render"))
+ drmtest_subtest_block("render")
run_on_ring(fd, I915_EXEC_RENDER, "render");
- if (drmtest_run_subtest("bsd"))
+ drmtest_subtest_block("bsd")
if (HAS_BSD_RING(devid))
run_on_ring(fd, I915_EXEC_BSD, "bsd");
- if (drmtest_run_subtest("blt"))
+ drmtest_subtest_block("blt")
if (HAS_BLT_RING(devid))
run_on_ring(fd, I915_EXEC_BLT, "blt");
- if (drmtest_run_subtest("vebox"))
+ drmtest_subtest_block("vebox")
if (gem_has_vebox(fd))
run_on_ring(fd, LOCAL_I915_EXEC_VEBOX, "vebox");