[Piglit] [PATCH] tex-miplevel-selection: stop after 100 failures
Ken Phillis Jr
kphillisjr at gmail.com
Wed Jul 16 16:13:25 PDT 2014
I think this is a good idea and the patch looks good. Although I would
suggest some calculations to see how much was skipped by reaching the
failure threshold.
On Jul 16, 2014 4:35 PM, "Brian Paul" <brianp at vmware.com> wrote:
> rather than continuing. As it was, if something is majorly broken in
> the driver, this test could report nearly 60,000 failure messages.
> The results.json file is pretty huge in this case.
> ---
> tests/texturing/tex-miplevel-selection.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/tests/texturing/tex-miplevel-selection.c
> b/tests/texturing/tex-miplevel-selection.c
> index 0f03c6e..11e4292 100644
> --- a/tests/texturing/tex-miplevel-selection.c
> +++ b/tests/texturing/tex-miplevel-selection.c
> @@ -1456,6 +1456,10 @@ piglit_display(void)
>
> maxlevel, minlod, maxlod,
>
> bias, mipfilter)) {
>
> failed++;
> +
> if (failed > 100) {
> +
> printf("Stopping after 100 failures\n");
> +
> goto end;
> +
> }
> }
> }
> total++;
> @@ -1492,12 +1496,17 @@ piglit_display(void)
>
> baselevel, maxlevel, minlod,
>
> maxlod, bias, mipfilter)) {
>
> failed++;
> +
> if (failed > 100) {
> +
> printf("Stopping after 100 failures\n");
> +
> goto end;
> +
> }
> }
>
> total++;
> }
> free(pix);
> }
>
> +end:
> assert(glGetError() == 0);
> printf("Summary: %i/%i passed\n", total-failed, total);
>
> --
> 1.7.10.4
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20140716/8be7c4a7/attachment.html>
More information about the Piglit
mailing list