'ant test' test/test_file#test_file_url fails with line ending `\r\n` in WinXP
------------------------------------------------------------------------------

                 Key: JRUBY-6258
                 URL: https://jira.codehaus.org/browse/JRUBY-6258
             Project: JRuby
          Issue Type: Bug
         Environment: Windows XP
            Reporter: Nick Klauer
            Assignee: Thomas E Enebo
         Attachments: 0004-fix-test-for-windows-line-terminating-chars-r-n.patch

The {{test/test_file#test_file_url}} test fails on Windows XP because of line 
ending encodings {{\r\n}}:

{noformat}

run-junit-interpreted-short:
     [echo] compile=OFF, jit.threshold=20, jit.maxsize=1000000000, jit.max=-1, 
objectspace=false threadpool=false reflection=false version=ruby1_8
    [junit] Testsuite: org.jruby.test.ScriptTestSuite
    [junit] Tests run: 32, Failures: 0, Errors: 0, Time elapsed: 8.375 sec
    [junit]
    [junit] Testsuite: org.jruby.test.JRubyTestSuite
    [junit] Tests run: 35, Failures: 1, Errors: 0, Time elapsed: 16.89 sec
    [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)
    [junit]     [./test/test_file.rb:1030:in `test_file_url'
    [junit]      org/jruby/RubyKernel.java:1939:in `send'
    [junit]      org/jruby/RubyArray.java:1609:in `each']:
    [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)
    [junit]     [./test/test_file.rb:1030:in `test_file_url'
    [junit]      org/jruby/RubyKernel.java:1939:in `send'
    [junit]      org/jruby/RubyArray.java:1609:in `each']:
    [junit] <"# -*- coding: utf-8 -*-\nrequire 'test/unit'\nrequire 
'rbconfig'\nrequire 'fileutils'\nrequire 'tempfile'">
{noformat}

Included patch to fix.

--
This message is automatically generated by JIRA.
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


Reply via email to