[Piglit] [PATCH 01/11] util/gl: add default window config of 150 x 150 pixels

Brian Paul brianp at vmware.com
Fri Nov 2 13:01:48 PDT 2012


On Win7 windows get resized to the min size of 116x100 pixels (which
might depend on the Aero theme, etc).  This resize is detected by
the piglit framework:

Got spurious window resize in automatic run (100,100 to 116,100)
PIGLIT: {'result': 'warn'}

so we get a 'warn' result instead of actually running the test.

This sets a default window size of 150x150 pixels.  Next, we'll
remove the "config.window_width/height = 100" lines from a bunch
of tests.
---
 tests/util/piglit-framework-gl.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/tests/util/piglit-framework-gl.h b/tests/util/piglit-framework-gl.h
index a0d6249..1f6cb81 100644
--- a/tests/util/piglit-framework-gl.h
+++ b/tests/util/piglit-framework-gl.h
@@ -216,6 +216,14 @@ piglit_gl_test_run(int argc, char *argv[],
                                                                              \
                 config.init = piglit_init;                                   \
                 config.display = piglit_display;                             \
+                                                                             \
+                /* Default window size.  Note: Win7's min window width */    \
+                /* seems to be 116 pixels.  When the window size is */       \
+                /* unexpectedly resized, tests are marked as "WARN". */      \
+                /* Let's use a larger default to avoid that. */              \
+                config.window_width = 150;                                   \
+                config.window_height = 150;
+
 
 #define PIGLIT_GL_TEST_CONFIG_END                                            \
                                                                              \
-- 
1.7.3.4



More information about the Piglit mailing list