diff options
-rw-r--r-- | tests/core_setmaster.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/core_setmaster.c b/tests/core_setmaster.c index 20e4defb..470f9441 100644 --- a/tests/core_setmaster.c +++ b/tests/core_setmaster.c @@ -125,6 +125,15 @@ static unsigned tweak_perm(uint8_t *saved_perm, unsigned max_perm, bool save) igt_main { + igt_fixture { + /* + * We're operating on the device files themselves + * before opening them, make sure the drivers are + * loaded. + */ + drm_load_module(DRIVER_ANY); + } + igt_describe("Ensure that root can Set/DropMaster"); igt_subtest("master-drop-set-root") { check_drop_set(); |