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

Re: [PATCH] t0070: Use precondition CANNOTWRITE

From
Johannes Sixt <j6t@kdbg.org>
Date
Jun 8, 2013, 07:23 UTC
Message-ID
<51B2DBEA.10205@kdbg.org>
In-Reply-To
<201306080851.17044.tboegi@web.de>
Am 08.06.2013 08:51, schrieb Torsten Bögershausen:
Show 9 quoted lines
> Filesystems like VFAT or NTFS allow to create files regardless of
> the write permissions of the directory.
> 
> Therefore "mktemp to unwritable directory" in t0700 will always fail on
> Windows using NTFS.
> This TC has been disabled for MINGW, and needs to be disabled for CYGWIN.
> 
> Use the precondition CANNOTWRITE which is probing the file system and
> works for MINGW, CYGWIN and even for Linux using VFAT.
Shouldn't it be a matter of

-test_expect_success POSIXPERM 'mktemp to unwritable directory prints filename' ' +test_expect_success SANITY 'mktemp to unwritable directory prints filename' '

It probably wouldn't catch Linux VFAT, but there're already a lot of tests that don't pass on Linux VFAT.

-- Hannes
Previous: Torsten Bögershausen
Message 2 of 2 in “t0070: Use precondition CANNOTWRITE”
  1. t0070: Use precondition CANNOTWRITETorsten Bögershausen, Jun 8, 2013
  2. Johannes SixtJun 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.