I don't really know how the tests work, but couldn't you run the results
thru dos2unix, or s\015?\012/\n/ before testing?
This shouldn't effect Linux behavior, but may allow Windows to work.
Cygwin allows the selection of either Dos or Linux style line ending, so
it may be tricky to detect which way to go. Perhaps better is to always
assume Dos, and convert to Linux. I don't think this breaks Linux line
ending.
It may be a problem if you have any embedded Dos message in your test
case, then that would be converted. That seems a remote chance, and
could be hacked when detected.
mike
Mark Overmeer via RT wrote:
Show quoted text> <URL:
http://rt.cpan.org/Ticket/Display.html?id=46672 >
>
> * emike@bigfoot.com via RT (bug-Mail-Box@rt.cpan.org) [090604 20:39]:
>
>> Thu Jun 04 16:39:09 2009: Request 46672 was acted upon.
>> Transaction: Ticket created by emike@bigfoot.com
>> Queue: Mail-Box
>> Subject: many tests fail when installing Mail::Box on Vista/Cygwin
>> Requestors: emike@bigfoot.com
>> Status: new
>> Ticket <URL:
http://rt.cpan.org/Ticket/Display.html?id=46672 >
>>
>> Many tests fail when installing Mail::Box on Vista/Cygwin. The log is
>> attached.
>>
>
> I know. They have mainly to do with cr/lf counting problems. It is
> also clearly stated somewhere -I cannot remember where ;-b
>
> I never use Windows. Windows users before you did report it, but
> they never came-up with good patches to fix the tests the right way.
> (Disabling them is not an acceptable option)
>