This had me puzzled for a couple days. After perfecting my CCACHE_* variables, I wanted to take a crack at HEAD, but "make test" failed at: SUITE: "base", TEST: "CCACHE_UNIFY" - Expected cache hit (preprocessed) to be 6, got 7 Unsetting the variables solved the problem; in particular CCACHE_UNIFY and CCACHE_TEMPDIR (made "find" fail). I figure just unsetting them all will make the tests run more predictably for present and future tests. diff --git a/test.sh b/test.sh index f583bdd..0f0e201 100755 --- a/test.sh +++ b/test.sh @@ -14,7 +14,7 @@ if [ -z "$CCACHE" ]; then fi TESTDIR=testdir.$$ -unset CCACHE_DISABLE +unset CCACHE_BASEDIR CCACHE_CC CCACHE_CPP2 CCACHE_DIR CCACHE_DISABLE CCACHE_EXTENSION CCACHE_HARDLINK CCACHE_HASHDIR CCACHE_HASH_COMP ILER CCACHE_LOGFILE CCACHE_NLEVELS CCACHE_NOCOMPRESS CCACHE_NODIRECT CCACHE_NOHASH_SIZE_MTIME CCACHE_NOSTATS CCACHE_PATH CCACHE_PREFIX CCACHE_READONLY CCACHE_RECACHE CCACHE_TEMPDIR CCACHE_UMASK CCACHE_UNIFY test_failed() { echo "SUITE: \"$testsuite\", TEST: \"$testname\" - $1"
Thanks. Committed with a minor tweak as a04bed3.