[Piglit] [PATCH] egl-util: stop running if piglit_automatic is true

Tapani Pälli tapani.palli at intel.com
Thu Jan 23 09:27:30 PST 2014


this allows to write tests that use egl-util and piglit framework

Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
---
 tests/egl/egl-util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/egl/egl-util.c b/tests/egl/egl-util.c
index 012f547..a9a60e6 100644
--- a/tests/egl/egl-util.c
+++ b/tests/egl/egl-util.c
@@ -149,7 +149,7 @@ event_loop(struct egl_state *state, const struct egl_test *test)
 
 		if (event.type == Expose) {
 			result = test->draw(state);
-			if (automatic)
+			if (automatic || piglit_automatic)
 				break;
 		}
 
-- 
1.8.4.2



More information about the Piglit mailing list