[Piglit] [PATCH 7/8] framework: Disable mesa's GL API error logging by default.
eric at anholt.net
Wed Sep 18 15:00:32 PDT 2013
Otherwise you'd approximately never terminate a run with khronos's
testsuite included in the run. If you were lucky.
Reviewed-by: Chad Versace <chad.versace at linux.intel.com>
Reviewed-by: Dylan Baker <baker.dylan.c at gmail.com>
framework/core.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/framework/core.py b/framework/core.py
index 5cb24aa..8fa0985 100644
@@ -207,6 +207,15 @@ if 'PIGLIT_SOURCE_DIR' not in os.environ:
os.environ['PIGLIT_SOURCE_DIR'] = p.abspath(p.join(p.dirname(__file__),
+# In debug builds, Mesa will by default log GL API errors to stderr.
+# This is useful for application developers or driver developers
+# trying to debug applications that should execute correctly. But for
+# piglit we expect to generate errors regularly as part of testing,
+# and for exhaustive error-generation tests (particularly some in
+# khronos's conformance suite), it can end up ooming your system
+# trying to parse the strings.
+if 'MESA_DEBUG' not in os.environ:
+ os.environ['MESA_DEBUG'] = 'silent'
More information about the Piglit