util/cache_test: Fix disabled cache test using SHADER_CACHE_DISABLE_BY_DEFAULT
authorDmitry Osipenko <dmitry.osipenko@collabora.com>
Fri, 1 Sep 2023 00:13:11 +0000 (03:13 +0300)
committerMarge Bot <emma+marge@anholt.net>
Tue, 5 Sep 2023 09:04:34 +0000 (09:04 +0000)
commit4547671fc3cb8611565fc4159562c1ab374ee0cf
tree8aa68ff1f1b5deda6bd6a0ecc737199fcbdd5a81
parent976fe1d77c6eb4b13aa2df99f2d99660e2cb6730
util/cache_test: Fix disabled cache test using SHADER_CACHE_DISABLE_BY_DEFAULT

Previous commit decoupled EGL_ANDROID_blob_cache from the disk cache
and haven't updated the SHADER_CACHE_DISABLE_BY_DEFAULT test-case that
is failing because now cache is always created even if disk cache is
disabled, such cache is NO-OP in this case. Fix the failing test.

Fixes: 39f26642 ("util: Decouple disk cache from EGL_ANDROID_blob_cache")
Reviewed-by: Rob Clark <robdclark@chromium.org>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24985>
src/util/tests/cache_test.cpp