jenkinsci/jenkins — pull request #575 by molekamp (2012-09-23 18:59:27+00:00)
Title: Fix XStreamDOMTest for Windows

On Windows, git recommends to automatically convert line breaks. As a result, the line breaks in XStreamDOMTest.data1.xml are converted to \r\n locally, and the tests XStreamDOMTest.testMarshal() and testWriteToDOM() are broken because the actual XStream marshalled xml string has \n for line breaks.

An alternative is to add a .gitattributes file specifying to use Linux line breaks, either for the whole of Jenkins, or only for the test resources.

This pull request is meant to trigger the discussion: should we use .gitattributes, or add more Windows-specific code to tests?