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

Brian Paul brianp at vmware.com
Wed Oct 12 16:57:37 PDT 2011


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);
 	}
-- 
1.7.3.4



More information about the Piglit mailing list