diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2015-03-17 14:47:16 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2015-03-18 15:08:31 -0700 |
commit | 7a0aa3daa54d1ffecfdb0c27e15d910ffb2abe01 (patch) | |
tree | 93203b9ec8df9a18f4287d4b63dc3de6ea5b64bc | |
parent | 74250b911904bacf7999f5fab15508c204689d30 (diff) |
shader_runner: Generate an error for an unrecognized [section] block
This would have caught the "[vertex shader passthrough" error in the
fs-frontfacing-ternary-* tests.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
-rw-r--r-- | tests/shaders/shader_runner.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c index b3624df5b..bd5479c16 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) { |