test/test_file.rb #test_file_stat_uri_prefixes test fails in Windows XP
-----------------------------------------------------------------------

                 Key: JRUBY-6257
                 URL: https://jira.codehaus.org/browse/JRUBY-6257
             Project: JRuby
          Issue Type: Bug
         Environment: WinXP
            Reporter: Nick Klauer
            Assignee: Thomas E Enebo
         Attachments: 0002-fix-Windows-File-Stat-error.patch, 
0003-File-Stat.new-doesn-t-return-the-right-error-on-WinX.patch

The test in {{test/test_file.rb}} {{test_file_stat_uri_prefixes}} fails on my 
computer (Windows XP) when running {{ant test}}:

{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: 13.781 sec
    [junit]
    [junit] Testsuite: org.jruby.test.JRubyTestSuite
    [junit] Tests run: 35, Failures: 1, Errors: 0, Time elapsed: 32.562 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_directory_empty_name(TestFile)
    [junit]     [./test/test_file.rb:823:in `test_file_directory_empty_name'
    [junit]      org/jruby/RubyKernel.java:1939:in `send'
    [junit]      org/jruby/RubyArray.java:1609:in `each']:
    [junit] <Errno::ENOENT> exception expected but was
    [junit] Class: <Errno::ESRCH>
    [junit] Message: <"No such process - ">
    [junit] ---Backtrace---
    [junit] org/jruby/RubyFileStat.java:322:in `initialize'
    [junit] ./test/test_file.rb:823:in `test_file_directory_empty_name'
    [junit] ./test/test_file.rb:823:in `test_file_directory_empty_name'
    [junit] org/jruby/RubyKernel.java:1939:in `send'
    [junit] org/jruby/RubyArray.java:1609:in `each'
    [junit] Message: <"No such process - ">
    [junit] ---------------
    [junit] Failure:
    [junit] test_file_stat_uri_prefixes(TestFile)
    [junit]     [./test/test_file.rb:556:in `test_file_stat_uri_prefixes'
    [junit]      org/jruby/RubyKernel.java:1939:in `send'
    [junit]      org/jruby/RubyArray.java:1609:in `each']:
    [junit] <Errno::ENOENT> exception expected but was
    [junit] Class: <SystemCallError>
    [junit] Message: <"Unknown error - Unknown Error (20047) - 
C:/klauer-jruby/file:">
    [junit] ---Backtrace---
    [junit] org/jruby/RubyFile.java:1516:in `lstat'
    [junit] ./test/test_file.rb:557:in `test_file_stat_uri_prefixes'
    [junit] ./test/test_file.rb:556:in `test_file_stat_uri_prefixes'
    [junit] org/jruby/RubyKernel.java:1939:in `send'
    [junit] org/jruby/RubyArray.java:1609:in `each'
    [junit] ---------------
    [junit] Failure:
    [junit] test_file_time_uri_prefixes(TestFile)
    [junit]     [./test/test_file.rb:573:in `test_file_time_uri_prefixes'
    [junit]      org/jruby/RubyKernel.java:1939:in `send'
    [junit]      org/jruby/RubyArray.java:1609:in `each']:
    [junit] <Errno::ENOENT> exception expected but was
    [junit] Class: <SystemCallError>
    [junit] Message: <"Unknown error - Unknown Error (20047) - 
C:/klauer-jruby/file:">
    [junit] ---Backtrace---
    [junit] org/jruby/RubyFile.java:1528:in `atime'
    [junit] ./test/test_file.rb:574:in `test_file_time_uri_prefixes'
    [junit] ./test/test_file.rb:573:in `test_file_time_uri_prefixes'
    [junit] org/jruby/RubyKernel.java:1939:in `send'
    [junit] org/jruby/

BUILD FAILED
C:\klauer-jruby\build.xml:895: The following error occurred while executing 
this line:
C:\klauer-jruby\build.xml:1016: The following error occurred while executing 
this line:
C:\klauer-jruby\build.xml:960: Tests failed

Total time: 3 minutes 33 seconds
{noformat}

I've included a couple patches that fix both of the above errors for me.

--
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