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>

Torsten Bögershausen committed Jun 8, 2013 at 14:17 UTC b3b8ceb48b7d75631a8638f1dc6ccdf7f1b53888
1 file changed +1 -1
t/t0070-fundamental.sh
+1 -1
@@ -17,7 +17,7 @@ test_expect_success 'mktemp to nonexistent directory prints filename' '
17 grep "doesnotexist/test" err
18 '
19
20 -test_expect_success POSIXPERM 'mktemp to unwritable directory prints filename' '
20 +test_expect_success POSIXPERM,SANITY 'mktemp to unwritable directory prints filename' '
21 mkdir cannotwrite &&
22 chmod -w cannotwrite &&
23 test_when_finished "chmod +w cannotwrite" &&