This repository has been archived on 2024-08-07. You can view files and clone it, but cannot push or open issues/pull-requests.
2017-04-17 18:48:43 +00:00
|
|
|
disk_cache_create() here looks up the users home directory from <pwd.h>
|
|
|
|
which resolves to "/" in the build environment. I could not find an easy
|
|
|
|
way to set the home directory to something else, so we disable this test
|
|
|
|
for now.
|
|
|
|
|
|
|
|
--- a/src/compiler/glsl/tests/cache_test.c
|
|
|
|
+++ b/src/compiler/glsl/tests/cache_test.c
|
2017-06-10 00:12:15 +00:00
|
|
|
@@ -170,11 +170,6 @@
|
2017-04-17 18:48:43 +00:00
|
|
|
unsetenv("MESA_GLSL_CACHE_DIR");
|
|
|
|
unsetenv("XDG_CACHE_HOME");
|
2017-09-20 17:54:56 +00:00
|
|
|
|
|
|
|
- cache = disk_cache_create("test", "make_check", 0);
|
2017-04-17 18:48:43 +00:00
|
|
|
- expect_non_null(cache, "disk_cache_create with no environment variables");
|
|
|
|
-
|
|
|
|
- disk_cache_destroy(cache);
|
|
|
|
-
|
|
|
|
/* Test with XDG_CACHE_HOME set */
|
|
|
|
setenv("XDG_CACHE_HOME", CACHE_TEST_TMP "/xdg-cache-home", 1);
|
2017-09-20 17:54:56 +00:00
|
|
|
cache = disk_cache_create("test", "make_check", 0);
|