[Piglit] [PATCH 1/2] piglit-shader: report full path name in err msg if we can't open the file

Ian Romanick idr at freedesktop.org
Fri Oct 14 14:45:10 PDT 2011


For the series,

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

On 10/12/2011 04:57 PM, Brian Paul wrote:
> This gives a better idea of what file we're trying to open.
> ---
>   tests/util/piglit-shader.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/tests/util/piglit-shader.c b/tests/util/piglit-shader.c
> index 0588608..c5c8c2d 100644
> --- a/tests/util/piglit-shader.c
> +++ b/tests/util/piglit-shader.c
> @@ -84,7 +84,7 @@ piglit_compile_shader(GLenum target, char *filename)
>
>   	err = stat(filename_with_path,&st);
>   	if (err == -1) {
> -		fprintf(stderr, "Couldn't stat program %s: %s\n", filename, strerror(errno));
> +		fprintf(stderr, "Couldn't stat program %s: %s\n", filename_with_path, strerror(errno));
>   		fprintf(stderr, "You can override the source dir by setting the PIGLIT_SOURCE_DIR environment variable.\n");
>   		exit(1);
>   	}



More information about the Piglit mailing list