[Piglit] [PATCH] utils: cleanup winsys on test exit

Emil Velikov emil.l.velikov at gmail.com
Tue Sep 30 10:50:46 PDT 2014


Reported-by: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---

Untested, but if my understanding is correct, it should handle
most cases.

-Emil

 tests/util/piglit-framework-gl/piglit_winsys_framework.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/util/piglit-framework-gl/piglit_winsys_framework.c b/tests/util/piglit-framework-gl/piglit_winsys_framework.c
index db57c57..4c50f0c 100644
--- a/tests/util/piglit-framework-gl/piglit_winsys_framework.c
+++ b/tests/util/piglit-framework-gl/piglit_winsys_framework.c
@@ -77,6 +77,7 @@ run_test(struct piglit_gl_framework *gl_fw,
 		if (gl_fw->test_config->display)
 			result = gl_fw->test_config->display();
 
+		gl_fw->destroy(gl_fw);
 		piglit_report_result(result);
 	}
 
-- 
2.1.0



More information about the Piglit mailing list