From: Joel Rosdahl Date: Wed, 9 Jun 2010 06:09:17 +0000 (+0200) Subject: Made "stderr-files" test more robust against different compiler behaviours X-Git-Tag: v3.0~40 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9c0d14557d5f1ff16ff4b4887f415fc9ba265614;p=thirdparty%2Fccache.git Made "stderr-files" test more robust against different compiler behaviours --- diff --git a/test.sh b/test.sh index b1ee28afb..daf0c71e4 100755 --- a/test.sh +++ b/test.sh @@ -350,6 +350,7 @@ EOF checkstat 'compiler produced empty output' 1 testname="stderr-files" + $CCACHE -Cz >/dev/null num=`find $CCACHE_DIR -name '*.stderr' | wc -l` if [ $num -ne 0 ]; then test_failed "$num stderr files found, expected 0" @@ -360,19 +361,19 @@ int stderr(void) /* Trigger warning by having no return statement. */ } EOF - checkstat 'files in cache' 3 + checkstat 'files in cache' 0 $CCACHE_COMPILE -Wall -W -c stderr.c 2>/dev/null num=`find $CCACHE_DIR -name '*.stderr' | wc -l` if [ $num -ne 1 ]; then test_failed "$num stderr files found, expected 1" fi - checkstat 'files in cache' 5 + checkstat 'files in cache' 2 testname="zero-stats" $CCACHE -z > /dev/null checkstat 'cache hit (preprocessed)' 0 checkstat 'cache miss' 0 - checkstat 'files in cache' 5 + checkstat 'files in cache' 2 testname="clear" $CCACHE -C > /dev/null