[Piglit] [PATCH 1/3] asmparsertest: print error if unable to open file

Ilia Mirkin imirkin at alum.mit.edu
Sun Jun 1 14:08:53 PDT 2014


On Sun, Jun 1, 2014 at 5:03 PM, Brian Paul <brianp at vmware.com> wrote:
> ---
>  tests/asmparsertest/asmparsertest.c |    1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/tests/asmparsertest/asmparsertest.c b/tests/asmparsertest/asmparsertest.c
> index 16ed0df..c250270 100644
> --- a/tests/asmparsertest/asmparsertest.c
> +++ b/tests/asmparsertest/asmparsertest.c
> @@ -120,6 +120,7 @@ compile(const char *filename, GLenum target, int use_ARB)
>
>         buf = piglit_load_text_file(filename, &sz);
>         if (buf == NULL) {
> +               printf(stderr, "Failed to open %s\n", filename);

Don't you want fprintf here? Or is there some crazy define situation
going on here?

>                 piglit_report_result(PIGLIT_FAIL);
>         }
>
> --
> 1.7.10.4
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit


More information about the Piglit mailing list