public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] sw_sync: Initialise struct before use
@ 2019-01-30 22:18 Chris Wilson
  2019-01-30 23:01 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Chris Wilson @ 2019-01-30 22:18 UTC (permalink / raw)
  To: igt-dev

sw_sync: ../lib/igt_core.c:1592: __igt_fork_helper: Assertion `!proc->running'

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108889
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 tests/sw_sync.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tests/sw_sync.c b/tests/sw_sync.c
index 207908ed7..ac4caf8ba 100644
--- a/tests/sw_sync.c
+++ b/tests/sw_sync.c
@@ -171,12 +171,11 @@ static void test_sync_busy(void)
 
 static void test_sync_busy_fork_unixsocket(void)
 {
+	struct igt_helper_process proc = {};
 	int fence;
 	int timeline;
 	int skip = 0;
 	int sv[2];
-	struct igt_helper_process proc;
-
 
 	timeline = sw_sync_timeline_create();
 	fence = sw_sync_timeline_create_fence(timeline, 1);
@@ -258,10 +257,10 @@ out:
 
 static void test_sync_busy_fork(void)
 {
+	struct igt_helper_process proc = {};
 	int fence;
 	int timeline;
 	int skip = 0;
-	struct igt_helper_process proc;
 
 	timeline = sw_sync_timeline_create();
 	fence = sw_sync_timeline_create_fence(timeline, 1);
-- 
2.20.1

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

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

end of thread, other threads:[~2019-01-31  9:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-30 22:18 [igt-dev] [PATCH i-g-t] sw_sync: Initialise struct before use Chris Wilson
2019-01-30 23:01 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2019-01-31  9:00 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2019-01-31  9:10 ` [igt-dev] [PATCH i-g-t] " Jani Nikula
2019-01-31  9:16   ` Chris Wilson
2019-01-31  9:18     ` Chris Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox