]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Clean cache before first pch test to avoid error when $COMPILER is ccache
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 4 Sep 2010 16:26:57 +0000 (18:26 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 4 Sep 2010 16:26:57 +0000 (18:26 +0200)
test.sh

diff --git a/test.sh b/test.sh
index 32e388e06a089a6d0d025c8e207c51e0a9b21435..26b34afa9660c0ab98b3119699b56f9733741f0c 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -1635,6 +1635,7 @@ EOF
     backdate pch.h
 
     testname="create .gch, -c, no -o"
+    $CCACHE -zC >/dev/null
     $CCACHE $COMPILER -c pch.h
     checkstat 'cache hit (direct)' 0
     checkstat 'cache hit (preprocessed)' 0