[Piglit] [PATCH] glx_arb_sync_control: Add timeout

Marta Lofstedt marta.lofstedt at linux.intel.com
Mon Apr 18 10:22:22 UTC 2016


From: Marta Lofstedt <marta.lofstedt at intel.com>

The glx_arb_sync_control piglit tests should fail after a
timeout expired, instead of not terminating.

Signed-off-by: Marta Lofstedt <marta.lofstedt at linux.intel.com>
---
 tests/spec/glx_oml_sync_control/common.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/spec/glx_oml_sync_control/common.c b/tests/spec/glx_oml_sync_control/common.c
index 6873ef1..ffd6261 100644
--- a/tests/spec/glx_oml_sync_control/common.c
+++ b/tests/spec/glx_oml_sync_control/common.c
@@ -58,6 +58,8 @@ piglit_oml_sync_control_test_run(bool fullscreen, enum piglit_result (*draw)(Dis
 	Display *dpy;
 	GLXContext ctx;
 
+	piglit_set_timeout(5, PIGLIT_FAIL);
+
 	dpy = XOpenDisplay(NULL);
 	if (dpy == NULL) {
 		fprintf(stderr, "couldn't open display\n");
-- 
2.5.0



More information about the Piglit mailing list