From: Ian Romanick <[email protected]>

This would have caught the "[vertex shader passthrough" error in the
fs-frontfacing-ternary-* tests.

Signed-off-by: Ian Romanick <[email protected]>
---
 tests/shaders/shader_runner.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index c193de9..ad8f618 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -935,6 +935,11 @@ process_test_script(const char *script_name)
                                if (test_start[0] != '\0')
                                        test_start++;
                                return;
+                       } else {
+                               fprintf(stderr,
+                                       "Unknown section in test script.  "
+                                       "Perhaps missing closing ']'?\n");
+                               piglit_report_result(PIGLIT_FAIL);
                        }
                } else {
                        switch (state) {
-- 
2.1.0

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to