diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-01-19 23:59:33 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-01-20 07:53:22 +0000 |
commit | ad9b78f443be71c093d56e513f58442f46da496b (patch) | |
tree | 4409d5073f47068d4127e9c9fde69b2281d08b89 /tests/gem_exec_alignment.c | |
parent | 28c33c6f90016f494d387ff8e886632ad3b5dfc6 (diff) |
igt/gem_exec_alignment: Convert to subtests
Allow both parts (single, many) to be run independently.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_exec_alignment.c')
-rw-r--r-- | tests/gem_exec_alignment.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/gem_exec_alignment.c b/tests/gem_exec_alignment.c index a18e23f7..1f9d4894 100644 --- a/tests/gem_exec_alignment.c +++ b/tests/gem_exec_alignment.c @@ -193,14 +193,16 @@ static void single(int fd) gem_close(fd, execobj.handle); } -igt_simple_main +igt_main { int fd; - igt_skip_on_simulation(); - fd = drm_open_driver(DRIVER_INTEL); + igt_fixture + fd = drm_open_driver(DRIVER_INTEL); - single(fd); - many(fd); + igt_subtest("single") /* basic! */ + single(fd); + igt_subtest("many") + many(fd); } |