Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-dev] Building Jetty under Windows

Hi,

I tried building Jetty under Windows and ran into the following failure:

testBigFileLittleBuffer(org.eclipse.jetty.server.handler.ResourceHandlerTest) Time elapsed: 0.013 sec <<< FAILURE!
java.lang.AssertionError:
Expected: a string ending with "   400\tThis is a big file\r\n"
     but: was "     1    This is a big file
[...snip...]
   400    This is a big file
"

The unit test looks for the OS-specific line-feed sequence (\r\n under Windows) but the text file in question contains UNIX-style line feeds because of Sourcetree's default settings.

What is the correct fix here? Am I supposed to configure Sourcetree to convert line-feeds? Or should the unit test get corrected?

Thanks,
Gili


Back to the top