mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-07-24 18:35:58 +00:00
tests/pm_pc8: check if we can't become DRM master
QA reported a failure that I believe happened because we couldn't become DRM master, so add code that checks for this and prints a nice error message. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
This commit is contained in:
parent
62e1cbc634
commit
2a71bff317
@ -751,6 +751,9 @@ 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");
|
||||
|
||||
init_mode_set_data(&ms_data);
|
||||
|
||||
setup_non_graphics_runtime_pm();
|
||||
|
Loading…
x
Reference in New Issue
Block a user