diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-06-22 09:10:33 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-06-23 11:30:31 +0100 |
commit | 68c5d538c64c042106632a1a6d36aba62700decf (patch) | |
tree | 8da7135dc67dbec977fc379c41b125ca8ffc4ac9 /tests | |
parent | 8453d4bb7a901c6a7601fc8a13b47701cbb38db4 (diff) |
igt/vgem_basic: Check multiple clients can open /dev/dri/<vgem>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/vgem_basic.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/vgem_basic.c b/tests/vgem_basic.c index b4337ee1..7a014f76 100644 --- a/tests/vgem_basic.c +++ b/tests/vgem_basic.c @@ -32,6 +32,12 @@ IGT_TEST_DESCRIPTION("Basic sanity check of Virtual GEM module (vGEM)."); +static void test_client(int fd) +{ + close(drm_open_driver(DRIVER_VGEM)); + close(drm_open_driver_render(DRIVER_VGEM)); +} + static void test_create(int fd) { struct vgem_bo bo; @@ -218,6 +224,9 @@ igt_main fd = drm_open_driver(DRIVER_VGEM); } + igt_subtest_f("second-client") + test_client(fd); + igt_subtest_f("create") test_create(fd); |