diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-11-28 12:17:40 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-11-28 12:17:40 +0100 |
commit | 2a9e128b18df8e3683b165378d884ce24147f04d (patch) | |
tree | 14fa633a3eaa848fe4a79a245b3c7740e6f09f90 /tests/gem_flink.c | |
parent | 9d65d484f65c841c878fa946e905f9297df62dac (diff) |
tests/gem_flink: convert to subtest infrastructure
Diffstat (limited to 'tests/gem_flink.c')
-rw-r--r-- | tests/gem_flink.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/gem_flink.c b/tests/gem_flink.c index c8694808..885cdd42 100644 --- a/tests/gem_flink.c +++ b/tests/gem_flink.c @@ -119,12 +119,18 @@ int main(int argc, char **argv) { int fd; + drmtest_subtest_init(argc, argv); + fd = drm_open_any(); - test_flink(fd); - test_double_flink(fd); - test_bad_flink(fd); - test_bad_open(fd); + if (drmtest_run_subtest("basic")) + test_flink(fd); + if (drmtest_run_subtest("double-flink")) + test_double_flink(fd); + if (drmtest_run_subtest("bad-flink")) + test_bad_flink(fd); + if (drmtest_run_subtest("bad-open")) + test_bad_open(fd); return 0; } |