test/test_file/test_file_url fails due to windows linebreak handling
---------------------------------------------------------------------
Key: JRUBY-4895
URL: http://jira.codehaus.org/browse/JRUBY-4895
Project: JRuby
Issue Type: Bug
Components: Windows
Reporter: Lars Westergren
Priority: Minor
File read contents via File.read(path) and File.read("file:///#{path}")
different. First version strips the \r from windows linebreaks, second do not.
[junit]
[junit] Testcase: test_file(org.jruby.test.TestUnitTestSuite$ScriptTest):
FAILED
[junit] Faults encountered running test\test_file, complete output follows:
[junit] Failure:
[junit] test_file_url(TestFile) [./test/test_file.rb:952]:
[junit] <"# -*- coding: utf-8 -*-\nrequire 'test/unit'\nrequire
'rbconfig'\nrequire 'fileutils'\nrequire 'tempfile'"> expected but was
[junit] <"# -*- coding: utf-8 -*-\r\nrequire 'test/unit'\r\nrequire
'rbconfig'\r\nrequire 'fileutils'\r\nrequire 'tempf">.
[junit]
[junit] junit.framework.AssertionFailedError: Faults encountered running
test\test_file, complete output follows:
[junit] Failure:
[junit] test_file_url(TestFile) [./test/test_file.rb:952]:
[junit] <"# -*- coding: utf-8 -*-\nrequire 'test/unit'\nrequire
'rbconfig'\nrequire 'fileutils'\nrequire 'tempfile'"> expected but was
[junit] <"# -*- coding: utf-8 -*-\r\nrequire 'test/unit'\r\nrequire
'rbconfig'\r\nrequire 'fileutils'\r\nrequire 'tempf">.
[junit]
[junit] at
org.jruby.test.TestUnitTestSuite$ScriptTest.runTest(TestUnitTestSuite.java:224)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email