From: Andrew Tridgell Date: Fri, 28 Mar 2003 12:24:26 +0000 (+0100) Subject: some compilers will overwrite /dev/zero - this makes sure the test X-Git-Tag: v2.3~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=458fc08504c7352f4f32dc04cba107eda69231cc;p=thirdparty%2Fccache.git some compilers will overwrite /dev/zero - this makes sure the test suite doesn't break those systems as root --- diff --git a/test.sh b/test.sh index 7639f100a..ef1a74341 100755 --- 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"