From: Joel Rosdahl Date: Sun, 30 May 2010 11:19:58 +0000 (+0200) Subject: Portability: Workaround for Solaris /bin/sh issue X-Git-Tag: v3.0~85 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5904c7ca312e25b6d0cbd040391b2ae68bfd5304;p=thirdparty%2Fccache.git Portability: Workaround for Solaris /bin/sh issue --- diff --git a/test.sh b/test.sh index 41afe6b12..a51c9cff5 100755 --- 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