Skip to content

Commit b3b8ceb

Browse files
tboegigitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3ea5941 commit b3b8ceb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t0070-fundamental.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test_expect_success 'mktemp to nonexistent directory prints filename' '
1717
grep "doesnotexist/test" err
1818
'
1919

20-
test_expect_success POSIXPERM 'mktemp to unwritable directory prints filename' '
20+
test_expect_success POSIXPERM,SANITY 'mktemp to unwritable directory prints filename' '
2121
mkdir cannotwrite &&
2222
chmod -w cannotwrite &&
2323
test_when_finished "chmod +w cannotwrite" &&

0 commit comments

Comments
 (0)