]> git.ipfire.org Git - thirdparty/ccache.git/commit
fix: Isolate inode cache file in tests
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 1 May 2022 11:15:37 +0000 (13:15 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 1 May 2022 11:29:41 +0000 (13:29 +0200)
commitf2ff4b90b8767ea0bc2d49162d85d5f08d72f24c
tree62ea8fc7d48a3aa287d363ed0e8ae79fa6b177f3
parent292b39dda8b4895b78f6ebff22409f40319e02e9
fix: Isolate inode cache file in tests

All test suites use the default temporary directory location
/run/user/<UID>/ccache-tmp when possible, which means that the inode
cache file is shared between all test suites. This is problematic when
running test suites in parallel since one test suite may run “ccache -C”
(which removes the inode cache file) between two compilations in the
inode_cache suite, thus making the second compilation not behave as
expected, failing the test.

Fix this by putting the temporary directory inside the test-specific
ccache directory instead of using the default global location.

Fixes #1045.
test/suites/inode_cache.bash