git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* t3032 incompatible with Cygwin/Windows
@ 2013-07-16 18:33 Mark Levedahl
  2013-07-16 18:49 ` [PATCH] t3032 - make compatible with systems using \r\n as a line ending Mark Levedahl
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Mark Levedahl @ 2013-07-16 18:33 UTC (permalink / raw)
  To: Git Mailing List

Subtests 6,7, and 9 of t3032 fail on Cygwin, and I presume will fail on 
msysgit for similar reasons. Looking at test 6, the expected result is a 
line ending with \r\n in text.txt. This line is extracted with grep 
(grep 'justice and holiness' text.txt > actual), with unavoidable result 
that on Cygwin the line ending is \n. This happens because on Cygwin, 
the text utils are compiled to open files in text mode meaning than \n 
and \r\n are both recognized as EOL markers. Thus, even though text.txt 
is an exact match for what is created on Linux, the test fails because 
\r\n cannot be distinguished by the available tools.

I'm not sure the right way forward. I did confirm that by substituting 
"q_to_tab" for "q_to_cr" in t3032, the test pass on Cygwin and on Linux. 
Perhaps t3032 should be so amended to avoid use of a non-portable line 
ending construct?

Mark

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2013-07-21 21:04 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-16 18:33 t3032 incompatible with Cygwin/Windows Mark Levedahl
2013-07-16 18:49 ` [PATCH] t3032 - make compatible with systems using \r\n as a line ending Mark Levedahl
2013-07-16 18:59   ` Jonathan Nieder
2013-07-16 19:44     ` Mark Levedahl
2013-07-16 20:26     ` Mark Levedahl
2013-07-16 20:32     ` Mark Levedahl
2013-07-17 19:33       ` Junio C Hamano
2013-07-18 21:44         ` [PATCH] test-lib.sh - define and use GREP_STRIPS_CR Mark Levedahl
2013-07-20 19:41           ` Ramsay Jones
2013-07-21 21:04             ` Junio C Hamano
2013-07-18 19:19     ` [PATCH] t3032 - make compatible with systems using \r\n as a line ending Ramsay Jones
2013-07-18 21:47       ` Mark Levedahl
2013-07-16 18:56 ` t3032 incompatible with Cygwin/Windows Jonathan Nieder
2013-07-18 19:11 ` Ramsay Jones

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).