mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
util/tests/cache_test: Skip Cache.List if not supported
FOZ_DB_UTIL_DYNAMIC_LIST depends on inotify support
Fixes: 3b69b67545 ("util/fossilize_db: add runtime RO foz db loading via FOZ_DBS_DYNAMIC_LIST")
Signed-off-by: Juston Li <justonli@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20865>
This commit is contained in:
parent
f18702250f
commit
4c03d4735e
1 changed files with 5 additions and 1 deletions
|
|
@ -1027,6 +1027,9 @@ TEST_F(Cache, List)
|
|||
|
||||
#ifndef ENABLE_SHADER_CACHE
|
||||
GTEST_SKIP() << "ENABLE_SHADER_CACHE not defined.";
|
||||
#else
|
||||
#ifndef FOZ_DB_UTIL_DYNAMIC_LIST
|
||||
GTEST_SKIP() << "FOZ_DB_UTIL_DYNAMIC_LIST not supported";
|
||||
#else
|
||||
setenv("MESA_DISK_CACHE_SINGLE_FILE", "true", 1);
|
||||
|
||||
|
|
@ -1162,5 +1165,6 @@ TEST_F(Cache, List)
|
|||
|
||||
int err = rmrf_local(CACHE_TEST_TMP);
|
||||
EXPECT_EQ(err, 0) << "Removing " CACHE_TEST_TMP " again";
|
||||
#endif
|
||||
#endif /* FOZ_DB_UTIL_DYNAMIC_LIST */
|
||||
#endif /* ENABLE_SHADER_CACHE */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue