diff options
author | Imre Deak <imre.deak@intel.com> | 2014-09-18 18:25:37 +0300 |
---|---|---|
committer | Imre Deak <imre.deak@intel.com> | 2014-09-30 16:44:50 +0300 |
commit | bfda78cd33b6562306c8c42e83047149f2ff6984 (patch) | |
tree | c5f539bebe4567dd90622e6eb65893726f596645 /tests | |
parent | 781a0485aca871d6b0278afacea724b97f6f59c1 (diff) |
tests/pm_rpm: factor out drm_open_any_master
Signed-off-by: Imre Deak <imre.deak@intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pm_rpm.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c index 0b698de7..31459cbb 100644 --- a/tests/pm_rpm.c +++ b/tests/pm_rpm.c @@ -713,11 +713,7 @@ static void setup_non_graphics_runtime_pm(void) static void setup_environment(void) { - drm_fd = drm_open_any(); - igt_assert(drm_fd >= 0); - - igt_require_f(drmSetMaster(drm_fd) == 0, "Can't become DRM master, " - "please check if no other DRM client is running.\n"); + drm_fd = drm_open_any_master(); init_mode_set_data(&ms_data); |