diff options
| author | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2013-12-16 18:47:39 -0200 |
|---|---|---|
| committer | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2013-12-16 18:51:39 -0200 |
| commit | 2a71bff3173c538d618f5fc6f45b7150fc10f3fb (patch) | |
| tree | 6d6e5c2085a984fd2cbab9308b08a823c8abca5c | |
| parent | 62e1cbc6343577e4fe2ea5b93981fab015872670 (diff) | |
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>
| -rw-r--r-- | tests/pm_pc8.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/pm_pc8.c b/tests/pm_pc8.c index 1f6d038d..d6b68e4a 100644 --- a/tests/pm_pc8.c +++ b/tests/pm_pc8.c @@ -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(); |
