gnu: public-inbox: Make git a regular input.
[jackhill/guix/guix.git] / gnu / packages / patches / mesa-skip-disk-cache-test.patch
CommitLineData
0315b20a
MB
1disk_cache_create() here looks up the users home directory from <pwd.h>
2which resolves to "/" in the build environment. I could not find an easy
3way to set the home directory to something else, so we disable this test
4for now.
5
6--- a/src/compiler/glsl/tests/cache_test.c
7+++ b/src/compiler/glsl/tests/cache_test.c
653569e8 8@@ -170,11 +170,6 @@
0315b20a
MB
9 unsetenv("MESA_GLSL_CACHE_DIR");
10 unsetenv("XDG_CACHE_HOME");
cb639269
MB
11
12- cache = disk_cache_create("test", "make_check", 0);
0315b20a
MB
13- expect_non_null(cache, "disk_cache_create with no environment variables");
14-
15- disk_cache_destroy(cache);
16-
17 /* Test with XDG_CACHE_HOME set */
18 setenv("XDG_CACHE_HOME", CACHE_TEST_TMP "/xdg-cache-home", 1);
cb639269 19 cache = disk_cache_create("test", "make_check", 0);