From 51869405bce651439a27d432eda85fe9167a9aaa Mon Sep 17 00:00:00 2001 From: Dmitry Osipenko Date: Thu, 26 Jan 2023 00:36:13 +0300 Subject: [PATCH] util/cache_test: Unset env vars left after Cache.List test The environment variables are persistent and must be explicitly unset by each cache test, otherwise next test will fail. Add the missing unsets to the Cache.List test. Reviewed-by: Timothy Arceri Signed-off-by: Dmitry Osipenko Part-of: --- src/util/tests/cache_test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util/tests/cache_test.cpp b/src/util/tests/cache_test.cpp index 39345ea91da..2b9f0f9ba3d 100644 --- a/src/util/tests/cache_test.cpp +++ b/src/util/tests/cache_test.cpp @@ -1165,6 +1165,9 @@ TEST_F(Cache, List) int err = rmrf_local(CACHE_TEST_TMP); EXPECT_EQ(err, 0) << "Removing " CACHE_TEST_TMP " again"; + + unsetenv("MESA_DISK_CACHE_SINGLE_FILE"); + unsetenv("MESA_DISK_CACHE_READ_ONLY_FOZ_DBS_DYNAMIC_LIST"); #endif /* FOZ_DB_UTIL_DYNAMIC_LIST */ #endif /* ENABLE_SHADER_CACHE */ }