From d861eb5fc2b0cce097efa88c8b783f118fd0eb9c Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Fri, 8 Sep 2017 10:49:45 +0100 Subject: util/disk_cache: turn MESA_GLSL_CACHE_DISABLE into a boolean Instead of setting based on set/unset, allow users to use boolean values. In the docs and tests, use `DISABLE=true` instead of `DISABLE=1` as it's clearer IMO. Signed-off-by: Eric Engestrom Reviewed-by: Timothy Arceri Reviewed-by: Emil Velikov --- src/compiler/glsl/tests/cache_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compiler/glsl/tests/cache_test.c') diff --git a/src/compiler/glsl/tests/cache_test.c b/src/compiler/glsl/tests/cache_test.c index 8e7912c71b6..75319f1160e 100644 --- a/src/compiler/glsl/tests/cache_test.c +++ b/src/compiler/glsl/tests/cache_test.c @@ -156,9 +156,9 @@ test_disk_cache_create(void) int err; /* Before doing anything else, ensure that with - * MESA_GLSL_CACHE_DISABLE set, that disk_cache_create returns NULL. + * MESA_GLSL_CACHE_DISABLE set to true, that disk_cache_create returns NULL. */ - setenv("MESA_GLSL_CACHE_DISABLE", "1", 1); + setenv("MESA_GLSL_CACHE_DISABLE", "true", 1); cache = disk_cache_create("test", "make_check", 0); expect_null(cache, "disk_cache_create with MESA_GLSL_CACHE_DISABLE set"); -- cgit v1.2.3