From ad9b78f443be71c093d56e513f58442f46da496b Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 19 Jan 2016 23:59:33 +0000 Subject: [PATCH] igt/gem_exec_alignment: Convert to subtests Allow both parts (single, many) to be run independently. Signed-off-by: Chris Wilson --- tests/gem_exec_alignment.c | 12 +++++++----- 1 file 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); }