summaryrefslogtreecommitdiff
path: root/tests/gem_basic.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gem_basic.c')
-rw-r--r--tests/gem_basic.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/gem_basic.c b/tests/gem_basic.c
index 4b230b01..19065b1e 100644
--- a/tests/gem_basic.c
+++ b/tests/gem_basic.c
@@ -75,13 +75,14 @@ test_create_fd_close(int fd)
close(fd);
}
+int fd;
+
int main(int argc, char **argv)
{
- int fd;
-
igt_subtest_init(argc, argv);
- fd = drm_open_any();
+ igt_fixture
+ fd = drm_open_any();
igt_subtest("bad-close")
test_bad_close(fd);