[PATCH i-g-t] tests/gem_exec_reuse: Adds cleanup at the end of test.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch introduces a fixture at the end of the test to destroy
objects that have been created and stop the hang detector.

Cc: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>

Signed-off-by: Antonio Argenziano <antonio.argenziano@xxxxxxxxx>
---
 tests/gem_exec_reuse.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/gem_exec_reuse.c b/tests/gem_exec_reuse.c
index cdfa9783..db26e57c 100644
--- a/tests/gem_exec_reuse.c
+++ b/tests/gem_exec_reuse.c
@@ -234,4 +234,11 @@ igt_main
 		for (n = 0; n < ncontexts; n++)
 			gem_context_destroy(no.fd, contexts[n]);
 	}
+
+	igt_fixture {
+		igt_stop_hang_detector();
+
+		gem_close(no.fd, no.batch);
+		close(no.fd);
+	}
 }
-- 
2.14.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux