Mesa (master): tests/cache_test: mark arguments const
Timothy Arceri
tarceri at kemper.freedesktop.org
Sat Mar 25 01:47:58 UTC 2017
Module: Mesa
Branch: master
Commit: 7d8ee4b4d006f0612a5e5f9a416e2e6e853684e6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7d8ee4b4d006f0612a5e5f9a416e2e6e853684e6
Author: Grazvydas Ignotas <notasas at gmail.com>
Date: Sat Mar 25 00:56:51 2017 +0200
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 <notasas at gmail.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
---
src/compiler/glsl/tests/cache_test.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/compiler/glsl/tests/cache_test.c b/src/compiler/glsl/tests/cache_test.c
index 2302f448d2..537a81bc76 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;
More information about the mesa-commit
mailing list