[Piglit] [PATCH 2/3] framework: allow locals to be declared in piglit config block.
Paul Berry
stereotype441 at gmail.com
Fri Jul 26 13:11:49 PDT 2013
---
tests/util/piglit-framework-gl.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tests/util/piglit-framework-gl.h b/tests/util/piglit-framework-gl.h
index 3cc1cac..e65c989 100644
--- a/tests/util/piglit-framework-gl.h
+++ b/tests/util/piglit-framework-gl.h
@@ -218,10 +218,15 @@ piglit_gl_test_run(int argc, char *argv[],
/* unexpectedly resized, tests are marked as "WARN". */ \
/* Let's use a larger default to avoid that. */ \
config.window_width = 150; \
- config.window_height = 150;
+ config.window_height = 150; \
+ \
+ /* Open a new scope so that tests can declare locals */ \
+ /* between here and PIGLIT_GL_TEST_CONFIG_END. */ \
+ {
#define PIGLIT_GL_TEST_CONFIG_END \
+ } \
\
piglit_gl_test_run(argc, argv, &config); \
\
--
1.8.3.4
More information about the Piglit
mailing list