tests/gem_basic: convert to subtest infrastructure

This commit is contained in:
Daniel Vetter 2012-11-28 11:16:44 +01:00
parent c3d5c1292b
commit 3cca0d8c6d
2 changed files with 9 additions and 4 deletions

View File

@ -13,6 +13,7 @@ NOUVEAU_TESTS = \
endif endif
TESTS_progs_M = \ TESTS_progs_M = \
gem_basic \
flip_test \ flip_test \
$(NULL) $(NULL)
@ -20,7 +21,6 @@ TESTS_progs = \
getversion \ getversion \
getclient \ getclient \
getstats \ getstats \
gem_basic \
gem_cacheing \ gem_cacheing \
gem_cpu_concurrent_blit \ gem_cpu_concurrent_blit \
gem_cs_tlb \ gem_cs_tlb \

View File

@ -80,11 +80,16 @@ int main(int argc, char **argv)
{ {
int fd; int fd;
drmtest_subtest_init(argc, argv);
fd = drm_open_any(); fd = drm_open_any();
test_bad_close(fd); if (drmtest_run_subtest("bad-close"))
test_create_close(fd); test_bad_close(fd);
test_create_fd_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; return 0;
} }