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 <>
 t/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/ b/t/
index da2c504..986b2a8 100755
--- a/t/
+++ b/t/
@@ -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" &&

To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at

Reply via email to