All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [i-g-t] tests/kms_big_fb: Use igt_assert on bufmgr
@ 2020-07-15 12:03 Pankaj Bharadiya
  2020-07-15 13:21 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Pankaj Bharadiya @ 2020-07-15 12:03 UTC (permalink / raw)
  To: igt-dev, pankaj.laxminarayan.bharadiya

NULL bufmgr pointer leads to SIGSEGV. Assert on NULL bufmgr so that
correct failure reason will get dumped in the stack trace.

Signed-off-by: Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>
---
 tests/kms_big_fb.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/kms_big_fb.c b/tests/kms_big_fb.c
index a754b2997..b19b56f90 100644
--- a/tests/kms_big_fb.c
+++ b/tests/kms_big_fb.c
@@ -649,6 +649,7 @@ igt_main
 			data.render_copy = igt_get_render_copyfunc(data.devid);
 
 		data.bufmgr = drm_intel_bufmgr_gem_init(data.drm_fd, 4096);
+		igt_assert(data.bufmgr);
 		data.batch = intel_batchbuffer_alloc(data.bufmgr, data.devid);
 	}
 
-- 
2.23.0

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

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

end of thread, other threads:[~2020-07-22  7:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-15 12:03 [igt-dev] [i-g-t] tests/kms_big_fb: Use igt_assert on bufmgr Pankaj Bharadiya
2020-07-15 13:21 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2020-07-15 18:36 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2020-07-21 15:57 ` [igt-dev] [i-g-t] " Karthik B S
2020-07-22  7:41 ` Petri Latvala

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.