git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Torsten Bögershausen <tboegi@web.de>
Date
Jun 8, 2013, 12:17 UTC
Message-ID
<201306081417.49990.tboegi@web.de>

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(-)
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
Message 1 of 1 in “t0070 "mktemp to unwritable directory" needs SANITY”
  1. t0070 "mktemp to unwritable directory" needs SANITYTorsten Bögershausen, Jun 8, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.