]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
some compilers will overwrite /dev/zero - this makes sure the test
authorAndrew Tridgell <tridge@samba.org>
Fri, 28 Mar 2003 12:24:26 +0000 (13:24 +0100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 28 Mar 2003 12:24:26 +0000 (13:24 +0100)
suite doesn't break those systems as root

test.sh

diff --git a/test.sh b/test.sh
index 7639f100a37cee25430140f8e5e1a81c04499792..ef1a743415f868f0ed9c8701b1b8a3cbfdabbd5c 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -114,7 +114,9 @@ basetests() {
     checkstat 'compiler produced stdout' 1
 
     testname="non-regular"
-    $CCACHE_COMPILE -o /dev/zero -c test1.c
+    mkdir testd
+    $CCACHE_COMPILE -o testd -c test1.c > /dev/null 2>&1
+    rmdir testd
     checkstat 'output to a non-regular file' 1
 
     testname="no-input"