From: Joel Rosdahl Date: Mon, 14 Jun 2010 21:16:34 +0000 (+0200) Subject: Add test case for -x unknown X-Git-Tag: v3.0~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d7e7049076b6f685a7770a9aaed989c292434eb5;p=thirdparty%2Fccache.git Add test case for -x unknown --- diff --git a/test.sh b/test.sh index a15ede602..5ea5cbf52 100755 --- a/test.sh +++ b/test.sh @@ -310,6 +310,12 @@ base_tests() { checkstat 'cache hit (preprocessed)' 13 checkstat 'cache miss' 39 + testname="-x unknown" + $CCACHE_COMPILE -x unknown -c test1.c 2>/dev/null + checkstat 'cache hit (preprocessed)' 13 + checkstat 'cache miss' 39 + checkstat 'unsupported source language' 2 + if [ -x /usr/bin/printf ]; then /usr/bin/printf '#include \nwchar_t foo[] = L"\xbf";\n' >latin1.c if CCACHE_DISABLE=1 $COMPILER -c -finput-charset=latin1 latin1.c >/dev/null 2>&1; then