From: Joel Rosdahl Date: Tue, 13 Apr 2010 16:25:38 +0000 (+0200) Subject: Only run -finput-charset test if compilation without ccache works X-Git-Tag: v3.0pre1~81 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=64fa702c732d93093c4e36b3b42a3eb5024ec847;p=thirdparty%2Fccache.git Only run -finput-charset test if compilation without ccache works --- diff --git a/test.sh b/test.sh index 29864bbce..9a7a3be50 100755 --- a/test.sh +++ b/test.sh @@ -279,14 +279,16 @@ base_tests() { checkstat 'cache miss' 38 if [ -x /usr/bin/printf ]; then - testname="-finput-charset" /usr/bin/printf 'char foo[] = "\xa3";\n' >cp1250.c - $CCACHE_COMPILE -c -finput-charset=cp1250 cp1250.c - checkstat 'cache hit (preprocessed)' 10 - checkstat 'cache miss' 39 - $CCACHE_COMPILE -c -finput-charset=cp1250 cp1250.c - checkstat 'cache hit (preprocessed)' 11 - checkstat 'cache miss' 39 + if CCACHE_DISABLE=1 $COMPILER -c -finput-charset=cp1250 cp1250.c >/dev/null 2>&1; then + testname="-finput-charset" + $CCACHE_COMPILE -c -finput-charset=cp1250 cp1250.c + checkstat 'cache hit (preprocessed)' 10 + checkstat 'cache miss' 39 + $CCACHE_COMPILE -c -finput-charset=cp1250 cp1250.c + checkstat 'cache hit (preprocessed)' 11 + checkstat 'cache miss' 39 + fi fi testname="no object file"