All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] lib/igt_device: Add information why cannot drop drm master
@ 2018-05-14 10:19 Katarzyna Dec
  2018-05-14 10:44 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (11 more replies)
  0 siblings, 12 replies; 21+ messages in thread
From: Katarzyna Dec @ 2018-05-14 10:19 UTC (permalink / raw)
  To: igt-dev

Let's add additional information to igt_device_drop_master
in case we try to run tests with e.g. x11 enabled.

Signed-off-by: Katarzyna Dec <katarzyna.dec@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
---
 lib/igt_device.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/igt_device.c b/lib/igt_device.c
index 8a2dd0e3..96fde899 100644
--- a/lib/igt_device.c
+++ b/lib/igt_device.c
@@ -74,5 +74,9 @@ int __igt_device_drop_master(int fd)
  */
 void igt_device_drop_master(int fd)
 {
-	igt_assert_eq(__igt_device_drop_master(fd), 0);
+	if (__igt_device_drop_master(fd)) {
+		igt_require_f(__igt_device_drop_master(fd) == 0,
+			      "Can't drop DRM master, "
+			      "please check if no other DRM client is running.\n");
+	}
 }
-- 
2.14.3

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2018-05-16  0:40 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-14 10:19 [igt-dev] [PATCH i-g-t] lib/igt_device: Add information why cannot drop drm master Katarzyna Dec
2018-05-14 10:44 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-05-14 10:52 ` [igt-dev] [PATCH i-g-t] " Chris Wilson
2018-05-14 11:37 ` [igt-dev] [PATCH i-g-t v2] " Katarzyna Dec
2018-05-14 12:39   ` Chris Wilson
2018-05-14 12:44     ` Chris Wilson
2018-05-14 12:51       ` Katarzyna Dec
2018-05-14 12:51   ` [igt-dev] [PATCH i-g-t v3] " Katarzyna Dec
2018-05-15  7:45     ` Chris Wilson
2018-05-15  8:40     ` [igt-dev] [PATCH i-g-t v4] " Katarzyna Dec
2018-05-15 10:15       ` Chris Wilson
2018-05-15 11:30         ` Chris Wilson
2018-05-14 14:19 ` [igt-dev] ✗ Fi.CI.IGT: failure for " Patchwork
2018-05-14 14:53 ` [igt-dev] ✓ Fi.CI.BAT: success for lib/igt_device: Add information why cannot drop drm master (rev3) Patchwork
2018-05-14 22:32 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2018-05-15 10:12 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2018-05-15 11:14 ` [igt-dev] ✓ Fi.CI.BAT: success for lib/igt_device: Add information why cannot drop drm master (rev4) Patchwork
2018-05-15 14:52 ` Patchwork
2018-05-15 16:01 ` [igt-dev] ✓ Fi.CI.IGT: success for lib/igt_device: Add information why cannot drop drm master (rev3) Patchwork
2018-05-15 18:09 ` [igt-dev] ✓ Fi.CI.IGT: success for lib/igt_device: Add information why cannot drop drm master (rev4) Patchwork
2018-05-16  0:40 ` Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.