Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 1 | From 1c67250308a92d4991ed05d9d240090ab84accae Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
| 3 | Date: Tue, 10 Nov 2020 17:13:50 +0000 |
| 4 | Subject: [PATCH 2/2] tests/util/piglit-shader.c: do not hardcode build path |
| 5 | into target binary |
| 6 | |
| 7 | This helps reproducibilty. |
| 8 | |
| 9 | Upstream-Status: Inappropriate [oe-core specific] |
| 10 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
| 11 | --- |
| 12 | tests/util/piglit-shader.c | 2 +- |
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 14 | |
| 15 | diff --git a/tests/util/piglit-shader.c b/tests/util/piglit-shader.c |
| 16 | index 4fd68d21e..c9ea8295e 100644 |
| 17 | --- a/tests/util/piglit-shader.c |
| 18 | +++ b/tests/util/piglit-shader.c |
| 19 | @@ -73,7 +73,7 @@ piglit_compile_shader(GLenum target, const char *filename) |
| 20 | |
| 21 | source_dir = getenv("PIGLIT_SOURCE_DIR"); |
| 22 | if (source_dir == NULL) { |
| 23 | - source_dir = SOURCE_DIR; |
| 24 | + source_dir = "."; |
| 25 | } |
| 26 | |
| 27 | snprintf(filename_with_path, FILENAME_MAX - 1, |
| 28 | -- |
| 29 | 2.17.1 |
| 30 | |