diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-11-28 11:16:44 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-11-28 11:57:58 +0100 |
commit | 3cca0d8c6d33837e1e5a3f1bd1210cb37bb94a18 (patch) | |
tree | 445033f53c4dbb6d799cef5546ed3511dc34fc7d | |
parent | c3d5c1292bac53ac14d8661d8ac76c5a79752016 (diff) |
tests/gem_basic: convert to subtest infrastructure
-rw-r--r-- | tests/Makefile.am | 2 | ||||
-rw-r--r-- | tests/gem_basic.c | 11 |
2 files changed, 9 insertions, 4 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 5f4d6886..c8827666 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -13,6 +13,7 @@ NOUVEAU_TESTS = \ endif TESTS_progs_M = \ + gem_basic \ flip_test \ $(NULL) @@ -20,7 +21,6 @@ TESTS_progs = \ getversion \ getclient \ getstats \ - gem_basic \ gem_cacheing \ gem_cpu_concurrent_blit \ gem_cs_tlb \ diff --git a/tests/gem_basic.c b/tests/gem_basic.c index 24ad445f..5cc8684e 100644 --- a/tests/gem_basic.c +++ b/tests/gem_basic.c @@ -80,11 +80,16 @@ int main(int argc, char **argv) { int fd; + drmtest_subtest_init(argc, argv); + fd = drm_open_any(); - test_bad_close(fd); - test_create_close(fd); - test_create_fd_close(fd); + if (drmtest_run_subtest("bad-close")) + test_bad_close(fd); + if (drmtest_run_subtest("create-close")) + test_create_close(fd); + if (drmtest_run_subtest("create-fd-close")) + test_create_fd_close(fd); return 0; } |