mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 04:42:53 +00:00
tests/gem_basic: convert to subtest infrastructure
This commit is contained in:
+8
-3
@@ -80,11 +80,16 @@ int main(int argc, char **argv)
|
||||
{
|
||||
int fd;
|
||||
|
||||
drmtest_subtest_init(argc, argv);
|
||||
|
||||
fd = drm_open_any();
|
||||
|
||||
test_bad_close(fd);
|
||||
test_create_close(fd);
|
||||
test_create_fd_close(fd);
|
||||
if (drmtest_run_subtest("bad-close"))
|
||||
test_bad_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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user