diff options
-rw-r--r-- | src/InodeCache.cpp | 4 | ||||
-rw-r--r-- | test/suites/inode_cache.bash | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/InodeCache.cpp b/src/InodeCache.cpp index df928d4f..5985cd5b 100644 --- a/src/InodeCache.cpp +++ b/src/InodeCache.cpp @@ -498,7 +498,9 @@ InodeCache::drop() std::string InodeCache::get_file() { - return FMT("{}/inode-cache.v{}", m_config.temporary_dir(), k_version); + const uint8_t arch_bits = 8 * sizeof(void*); + return FMT( + "{}/inode-cache-{}.v{}", m_config.temporary_dir(), arch_bits, k_version); } int64_t diff --git a/test/suites/inode_cache.bash b/test/suites/inode_cache.bash index a09ac5d7..e53bf8b2 100644 --- a/test/suites/inode_cache.bash +++ b/test/suites/inode_cache.bash @@ -9,7 +9,7 @@ SUITE_inode_cache_PROBE() { touch test.c $CCACHE $COMPILER -c test.c - if [[ ! -f "${CCACHE_TEMPDIR}/inode-cache.v1" ]]; then + if [[ ! -f "${CCACHE_TEMPDIR}/inode-cache-32.v1" && ! -f "${CCACHE_TEMPDIR}/inode-cache-64.v1" ]]; then local fs_type=$(stat -fLc %T "${CCACHE_DIR}") echo "inode cache not supported on ${fs_type}" fi |