diff options
author | Grazvydas Ignotas <[email protected]> | 2017-03-25 00:56:51 +0200 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-25 12:46:18 +1100 |
commit | 7d8ee4b4d006f0612a5e5f9a416e2e6e853684e6 (patch) | |
tree | 44df10e5339638a5a67ca982b96780ba05495fe1 | |
parent | d87ef8f77c4014902ef05b5caafc66cb36ee56f0 (diff) |
tests/cache_test: mark arguments const
While at it, also fix up a failure message to not reference timestamp
and gpu dirs as those are no longer being made.
Signed-off-by: Grazvydas Ignotas <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
-rw-r--r-- | src/compiler/glsl/tests/cache_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compiler/glsl/tests/cache_test.c b/src/compiler/glsl/tests/cache_test.c index 2302f448d21..537a81bc764 100644 --- a/src/compiler/glsl/tests/cache_test.c +++ b/src/compiler/glsl/tests/cache_test.c @@ -128,7 +128,7 @@ rmrf_local(const char *path) } static void -check_directories_created(char *cache_dir) +check_directories_created(const char *cache_dir) { bool sub_dirs_created = false; @@ -144,7 +144,7 @@ check_directories_created(char *cache_dir) } } - expect_true(sub_dirs_created, "create timestamp and gpu ip sub dirs"); + expect_true(sub_dirs_created, "create sub dirs"); } #define CACHE_TEST_TMP "./cache-test-tmp" @@ -208,7 +208,7 @@ test_disk_cache_create(void) } static bool -does_cache_contain(struct disk_cache *cache, cache_key key) +does_cache_contain(struct disk_cache *cache, const cache_key key) { void *result; @@ -223,7 +223,7 @@ does_cache_contain(struct disk_cache *cache, cache_key key) } static void -wait_until_file_written(struct disk_cache *cache, cache_key key) +wait_until_file_written(struct disk_cache *cache, const cache_key key) { struct timespec req; struct timespec rem; |