glsl/tests: Fix waiting for disk_cache_put() to finish.
authorEric Anholt <eric@anholt.net>
Tue, 10 Mar 2020 21:52:42 +0000 (14:52 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 12 Mar 2020 19:47:23 +0000 (19:47 +0000)
commitd0a52432b19f1d3e61b20a5dd4ba1a1e5546bd7d
tree180e36fe8a82041176055ab5847c4ab49919b464
parente178bca5cc194ecb3e6b447620045a72f9cc465d
glsl/tests: Fix waiting for disk_cache_put() to finish.

We were wasting 4s on waiting for expected-not-to-appear files to show
up on every test.  Using timeouts in test code is error-prone anyway,
as our shared runners may be busy on other jobs.

Fixes: 50989f87e62e ("util/disk_cache: use a thread queue to write to shader cache")
Link: https://gitlab.freedesktop.org/mesa/mesa/issues/2505
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4140>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4140>
src/compiler/glsl/tests/cache_test.c
src/util/disk_cache.c
src/util/disk_cache.h