public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] i915/gem_exec_reuse: stop the hang detector afterwards
@ 2019-02-11 17:52 Chris Wilson
  2019-02-11 18:07 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
  2019-02-11 18:34 ` [igt-dev] [PATCH i-g-t] " Antonio Argenziano
  0 siblings, 2 replies; 3+ messages in thread
From: Chris Wilson @ 2019-02-11 17:52 UTC (permalink / raw)
  To: igt-dev; +Cc: intel-gfx

Take responsibility for the state we create, and in particular remember
to kill our child process (the hang detector) before exiting.

Reported-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
---
 tests/i915/gem_exec_reuse.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/i915/gem_exec_reuse.c b/tests/i915/gem_exec_reuse.c
index df220be7b..44946528f 100644
--- a/tests/i915/gem_exec_reuse.c
+++ b/tests/i915/gem_exec_reuse.c
@@ -116,7 +116,7 @@ static unsigned int max_nfd(void)
 
 igt_main
 {
-	struct noop no;
+	struct noop no = { .fd = -1 };
 	unsigned engines[16];
 	unsigned nengine;
 	unsigned n;
@@ -213,4 +213,7 @@ igt_main
 		for (n = 0; n < ncontexts; n++)
 			gem_context_destroy(no.fd, contexts[n]);
 	}
+
+	igt_fixture
+		igt_stop_hang_detector(no.fd);
 }
-- 
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] 3+ messages in thread

end of thread, other threads:[~2019-02-11 18:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-11 17:52 [igt-dev] [PATCH i-g-t] i915/gem_exec_reuse: stop the hang detector afterwards Chris Wilson
2019-02-11 18:07 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2019-02-11 18:34 ` [igt-dev] [PATCH i-g-t] " Antonio Argenziano

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