threads / patch / 34066

v2t0070 "mktemp to unwritable directory" needs SANITY

Subject: [PATCH V2] t0070 "mktemp to unwritable directory" needs SANITY

## tl;dr

One message between Jun 8, 2013 and Jun 8, 2013. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Torsten Bögershausen· Jun 8, 2013, 12:17 UTC · lore

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>
---
 t/t0070-fundamental.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Show changes to t/t0070-fundamental.sh +1 −1
diff --git a/t/t0070-fundamental.sh b/t/t0070-fundamental.sh
index da2c504..986b2a8 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" &&
-- 
1.8.3

← back to recent threads