tests/gem_ctx_bad_exec: convert to subtests

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter 2013-08-13 12:41:20 +02:00
parent 83440953e5
commit ef9e64577d
2 changed files with 8 additions and 4 deletions

View File

@ -20,6 +20,7 @@ TESTS_progs_M = \
gem_caching \
gem_cpu_concurrent_blit \
gem_cs_tlb \
gem_ctx_bad_exec \
gem_dummy_reloc_loop \
gem_exec_bad_domains \
gem_exec_nop \
@ -57,7 +58,6 @@ TESTS_progs = \
gem_cpu_reloc \
gem_cs_prefetch \
gem_ctx_bad_destroy \
gem_ctx_bad_exec \
gem_ctx_basic \
gem_ctx_create \
gem_ctx_exec \

View File

@ -111,6 +111,7 @@ int main(int argc, char *argv[])
int fd;
igt_skip_on_simulation();
igt_subtest_init(argc, argv);
fd = drm_open_any();
@ -118,9 +119,12 @@ int main(int argc, char *argv[])
handle = gem_create(fd, 4096);
gem_write(fd, handle, 0, batch, sizeof(batch));
igt_assert(exec(fd, handle, I915_EXEC_RENDER, ctx_id) == 0);
igt_assert(exec(fd, handle, I915_EXEC_BSD, ctx_id) != 0);
igt_assert(exec(fd, handle, I915_EXEC_BLT, ctx_id) != 0);
igt_subtest("render")
igt_assert(exec(fd, handle, I915_EXEC_RENDER, ctx_id) == 0);
igt_subtest("bsd")
igt_assert(exec(fd, handle, I915_EXEC_BSD, ctx_id) != 0);
igt_subtest("blt")
igt_assert(exec(fd, handle, I915_EXEC_BLT, ctx_id) != 0);
exit(EXIT_SUCCESS);
}