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

Dylan Baker dylan at pnwbakers.com
Mon Jun 25 23:29:05 UTC 2018


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(-)

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.
-- 
2.17.1



More information about the Piglit mailing list