diff options
author | Eric Anholt <eric@anholt.net> | 2013-09-04 12:15:42 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2013-09-25 16:13:25 -0700 |
commit | d192d077e87a70c2cebd53e201ffbea08b1920ee (patch) | |
tree | f57579093fb2ec9ce90ceb9e1d46b1d2c70ae9e6 /framework | |
parent | 539f7b9b7fd2cc7375e2a6f598e026130e552659 (diff) |
framework: Disable mesa's GL API error logging by default.
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@linux.intel.com>
Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
Diffstat (limited to 'framework')
-rw-r--r-- | framework/core.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/framework/core.py b/framework/core.py index 013e9de00..09aebd419 100644 --- a/framework/core.py +++ b/framework/core.py @@ -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' class TestResult(dict): pass |