]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Add test case for -x unknown
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 14 Jun 2010 21:16:34 +0000 (23:16 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 14 Jun 2010 21:16:34 +0000 (23:16 +0200)
test.sh

diff --git a/test.sh b/test.sh
index a15ede602f8366f9a80cc4a662822d703eb5577f..5ea5cbf52238ac0c61a44a87c7c7e6b1fbf6d430 100755 (executable)
--- 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 <wchar.h>\nwchar_t foo[] = L"\xbf";\n' >latin1.c
         if CCACHE_DISABLE=1 $COMPILER -c -finput-charset=latin1 latin1.c >/dev/null 2>&1; then