Skip to contentSkip to conversation

t0070 "mktemp to unwritable directory" needs SANITY

PATCH New Torsten Bögershausen 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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.

---
 t/t0070-fundamental.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
t/t0070-fundamental.sh +1 -1
index da2c504..986b2a8 100755
@@ -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" &&
Signature · 1 line
1.8.3