[6/7] framework/shader_test: GL_NUM_PROGRAM_BINARY_FORMATS >= 1 is not an extension

Submitted by Dylan Baker on June 25, 2018, 11:29 p.m.

Details

Message ID 20180625232906.5646-7-dylan@pnwbakers.com
State New
Headers show
Series "Rework fast skipping to handle compat profile" ( rev: 2 1 ) in Piglit

Not browsing as part of any series.

Commit Message

Dylan Baker June 25, 2018, 11:29 p.m.
So don't treat it like one. Stops one test from being fast-skipped that
shouldn't be.
---
 framework/test/shader_test.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/framework/test/shader_test.py b/framework/test/shader_test.py
index 3d3cf2e06..863f3e79d 100644
--- a/framework/test/shader_test.py
+++ b/framework/test/shader_test.py
@@ -84,8 +84,10 @@  class Parser(object):
                     "In file {}: Config block not found".format(self.filename))
 
         for line in lines:
-            if line.startswith('GL_') and not line.startswith('GL_MAX'):
-                self.extensions.add(line.strip())
+            if line.startswith('GL_'):
+                line = line.strip()
+                if not (line.startswith('GL_MAX') or line.startswith('GL_NUM')):
+                    self.extensions.add(line)
                 continue
 
             # Find any GLES requirements.