]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Portability: Workaround for Solaris /bin/sh issue
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 30 May 2010 11:19:58 +0000 (13:19 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 30 May 2010 11:19:58 +0000 (13:19 +0200)
test.sh

diff --git a/test.sh b/test.sh
index 41afe6b1241582160fba0f0b76bdcd4e13749094..a51c9cff53c771f868a539844f4f7a8ff679d4ea 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -717,7 +717,10 @@ EOF
     checkstat 'cache hit (preprocessed)' 0
     checkstat 'cache miss' 1
 
-    CCACHE_NODIRECT=1 $CCACHE $COMPILER -Wall -W -c cpp-warning.c 2>stderr-cpp.txt
+    CCACHE_NODIRECT=1
+    export CCACHE_NODIRECT
+    $CCACHE $COMPILER -Wall -W -c cpp-warning.c 2>stderr-cpp.txt
+    unset CCACHE_NODIRECT
     checkstat 'cache hit (direct)' 0
     checkstat 'cache hit (preprocessed)' 1
     checkstat 'cache miss' 1