JRuby

ScriptTestSuite Failure in mri/sample/test.rb

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Incomplete
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    JRuby trunk, Java 6, WinXP
  • Number of attachments :
    0

Description

[junit] Testsuite: org.jruby.test.MainTestSuite
[junit] Tests run: 232, Failures: 0, Errors: 0, Time elapsed: 24.516 sec

[junit] Testsuite: org.jruby.test.ScriptTestSuite
[junit] Tests run: 16, Failures: 1, Errors: 0, Time elapsed: 9.219 sec

[junit] Testcase: mri/sample/test.rb(org.jruby.test.ScriptTestSuite$ScriptTest): FAILED
[junit] test\mri\sample\test.rb failed, complete failure list follows:
[junit] FAILED path 20 – ./test\mri\sample\test.rb:1994
[junit] FAILED path 21 – ./test\mri\sample\test.rb:1996

[junit] junit.framework.AssertionFailedError: test\mri\sample\test.rb failed, complete failure list follows:

Activity

Hide
Bill Dortch added a comment -

If I comment out those two tests, it then moves on to this failure in test\testFile.rb:

run-junit-compiled:
    [junit] Testsuite: org.jruby.test.MainTestSuite
    [junit] Tests run: 232, Failures: 0, Errors: 0, Time elapsed: 26.656 sec

    [junit] Testsuite: org.jruby.test.ScriptTestSuite
    [junit] Tests run: 36, Failures: 1, Errors: 0, Time elapsed: 23.828 sec

    [junit] Testcase: testFile.rb(org.jruby.test.ScriptTestSuite$ScriptTest):   FAILED
    [junit] test\testFile.rb failed, complete failure list follows:
    [junit] EXCEPTION raised Test File 14 --
    [junit]     Exception: java.lang.IllegalArgumentException: Neither current working directory (/f
oo/bar) nor pathname (../../bin) led to an absolute path
    [junit]     JRubyFile.java:51:in `org.jruby.util.JRubyFile.create'
    [junit]     RubyFile.java:663:in `org.jruby.RubyFile.expand_path'
    [junit]     null:-1:in `org.jruby.RubyFileInvokerSexpand_pathxx1.call'
    [junit]     FastInvocationCallback.java:49:in `org.jruby.runtime.callback.FastInvocationCallback
.execute'
    [junit]     SimpleCallbackMethod.java:81:in `org.jruby.internal.runtime.methods.SimpleCallbackMe
thod.call'
Show
Bill Dortch added a comment - If I comment out those two tests, it then moves on to this failure in test\testFile.rb:
run-junit-compiled:
    [junit] Testsuite: org.jruby.test.MainTestSuite
    [junit] Tests run: 232, Failures: 0, Errors: 0, Time elapsed: 26.656 sec

    [junit] Testsuite: org.jruby.test.ScriptTestSuite
    [junit] Tests run: 36, Failures: 1, Errors: 0, Time elapsed: 23.828 sec

    [junit] Testcase: testFile.rb(org.jruby.test.ScriptTestSuite$ScriptTest):   FAILED
    [junit] test\testFile.rb failed, complete failure list follows:
    [junit] EXCEPTION raised Test File 14 --
    [junit]     Exception: java.lang.IllegalArgumentException: Neither current working directory (/f
oo/bar) nor pathname (../../bin) led to an absolute path
    [junit]     JRubyFile.java:51:in `org.jruby.util.JRubyFile.create'
    [junit]     RubyFile.java:663:in `org.jruby.RubyFile.expand_path'
    [junit]     null:-1:in `org.jruby.RubyFileInvokerSexpand_pathxx1.call'
    [junit]     FastInvocationCallback.java:49:in `org.jruby.runtime.callback.FastInvocationCallback
.execute'
    [junit]     SimpleCallbackMethod.java:81:in `org.jruby.internal.runtime.methods.SimpleCallbackMe
thod.call'
Hide
Geoffrey Bays added a comment -

I got the same error after tweaking build.xml to exclude ant.jar from classpath. Again, WinXP, Java1.6,Ant 1.7,JRuby1.0RC2

G. Bays

Show
Geoffrey Bays added a comment - I got the same error after tweaking build.xml to exclude ant.jar from classpath. Again, WinXP, Java1.6,Ant 1.7,JRuby1.0RC2 G. Bays
Hide
Charles Oliver Nutter added a comment -

Very old and no followup. Reopen if it's still a problem.

Show
Charles Oliver Nutter added a comment - Very old and no followup. Reopen if it's still a problem.

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: