summaryrefslogtreecommitdiff
path: root/tests/gem_basic.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_basic.c
parent40ea6f4ea89dbf5a326677ea9482cc48743d2543 (diff)
downloadintel-gpu-tools-9f6365e4eacc7aa07fc3f9524500d1e217b61bb5.tar.gz
intel-gpu-tools-9f6365e4eacc7aa07fc3f9524500d1e217b61bb5.tar.bz2
intel-gpu-tools-9f6365e4eacc7aa07fc3f9524500d1e217b61bb5.zip
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_basic.c')
-rw-r--r--tests/gem_basic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/gem_basic.c b/tests/gem_basic.c
index 5cc8684e..900194db 100644
--- a/tests/gem_basic.c
+++ b/tests/gem_basic.c
@@ -84,11 +84,11 @@ int main(int argc, char **argv)
fd = drm_open_any();
- if (drmtest_run_subtest("bad-close"))
+ drmtest_subtest_block("bad-close")
test_bad_close(fd);
- if (drmtest_run_subtest("create-close"))
+ drmtest_subtest_block("create-close")
test_create_close(fd);
- if (drmtest_run_subtest("create-fd-close"))
+ drmtest_subtest_block("create-fd-close")
test_create_fd_close(fd);
return 0;