[Piglit] [PATCH 3/4] shader_runner: Generate an error for an unrecognized [section] block

Dylan Baker baker.dylan.c at gmail.com
Tue Mar 17 15:24:39 PDT 2015


Reviewed-by: Dylan Baker <baker.dylan.c at gmail.com>

On Tue, Mar 17, 2015 at 02:51:32PM -0700, Ian Romanick wrote:
> From: Ian Romanick <ian.d.romanick at intel.com>
> 
> This would have caught the "[vertex shader passthrough" error in the
> fs-frontfacing-ternary-* tests.
> 
> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
> ---
>  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
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20150317/e91c8025/attachment.sig>


More information about the Piglit mailing list