summaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-03-28 13:24:26 +0100
committerAndrew Tridgell <tridge@samba.org>2003-03-28 13:24:26 +0100
commit458fc08504c7352f4f32dc04cba107eda69231cc (patch)
tree349a480700caf962fe08d4ce32109901d96994d3 /test.sh
parent8e918cccc201f18a75abd605947f3aba14986ab1 (diff)
downloadccache-458fc08504c7352f4f32dc04cba107eda69231cc.tar.gz
some compilers will overwrite /dev/zero - this makes sure the test
suite doesn't break those systems as root
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/test.sh b/test.sh
index 7639f100..ef1a7434 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"