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

Re: Use testlib to skip t3300-funny-names

From
Alex Riesen <raa.lkml@gmail.com>
Date
Jan 7, 2006, 09:25 UTC
Message-ID
<20060107092538.GA5536@steel.home>
In-Reply-To
<7vvewxq8xg.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano, Fri, Jan 06, 2006 23:38:03 +0100:
Show 14 quoted lines
> > The test cannot be run on cygwin anyway.
> > Corrected the error message to reflect the problem source.
> 
> I'd rather see the test actually try to create a funny-named
> testfile and see if it managed to create it, so that it can be
> skipped on non DOS systems that mounted DOS filesystem.
> 
> So instead I would do something like this:
> 
> +test -f "$p1" && cmp "$p0" "$p1" || {
> +	# since FAT/NTFS does not allow tabs in filenames, skip this test
> +	say 'Your filesystem does not allow tabs in filenames, test skipped.'
> +	test_done
> +}
Yes, that's better
Previous: Junio C Hamano
Message 3 of 3 in “Use testlib to skip t3300-funny-names”
  1. Alex RiesenJan 5, 2006
  2. Junio C HamanoJan 6, 2006
  3. Alex RiesenJan 7, 2006

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.