summaryrefslogtreecommitdiff
path: root/t/t0070-fundamental.sh
diff options
context:
space:
mode:
authorTorsten Bögershausen <tboegi@web.de>2013-06-08 14:17:49 +0200
committerJunio C Hamano <gitster@pobox.com>2013-06-11 14:23:31 -0700
commitb3b8ceb48b7d75631a8638f1dc6ccdf7f1b53888 (patch)
treecaf93655d50418e24c51c38a11ea068fc72b7e56 /t/t0070-fundamental.sh
parent3ea59412e83065b38b52cb8d7b8432e0f516de6c (diff)
downloadgit-b3b8ceb48b7d75631a8638f1dc6ccdf7f1b53888.tar.gz
t0070 "mktemp to unwritable directory" needs SANITY
Use the SANITY prerequisite when testing if a temp file can be created in a read only directory. Skip the test under CYGWIN, or skip it under Unix/Linux when it is run as root. Signed-off-by: Torsten Bögershausen <tboegi@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0070-fundamental.sh')
-rwxr-xr-xt/t0070-fundamental.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t0070-fundamental.sh b/t/t0070-fundamental.sh
index da2c504e53..986b2a8f26 100755
--- a/t/t0070-fundamental.sh
+++ b/t/t0070-fundamental.sh
@@ -17,7 +17,7 @@ test_expect_success 'mktemp to nonexistent directory prints filename' '
grep "doesnotexist/test" err
'
-test_expect_success POSIXPERM 'mktemp to unwritable directory prints filename' '
+test_expect_success POSIXPERM,SANITY 'mktemp to unwritable directory prints filename' '
mkdir cannotwrite &&
chmod -w cannotwrite &&
test_when_finished "chmod +w cannotwrite" &&