Hi,

The latest checkout failed the *'ant test*' on running *test/testIO.rb *on
line 150, but when I run *test/testIO.rb*
manually it ran perfectly fine.

the problem line has the following code:

test_ok(File.delete(@file1,@file2,@file3))

I haven't figure out what's wrong, my initial guess will be path problem
when JUnit generate the ScriptTest so
during running under JUnit it is unable to find the file to be deleted.

Anybody else got the same problem or was it just me?

The following are the output of the run:


D:\Wirianto\Java\JRuby>ant test
Buildfile: build.xml

init:

jar:

jar-jruby:

init:

prepare:

compile.tasks:
     [copy] Copying 1 file to D:\Wirianto\Java\JRuby\build\classes\jruby

check-for-optional-java4-packages:

check-for-optional-packages:

compile-jruby:

compile:

generate-method-classes:
    [touch] Creating D:\Wirianto\Java\JRuby\build\__empty.rb
   [delete] Deleting: D:\Wirianto\Java\JRuby\build\__empty.rb
      [jar] Building jar: D:\Wirianto\Java\JRuby\lib\jruby.jar

compile-test:

copy-test-files:

instrument:

run-junit-compiled:
    [junit] Testsuite: org.jruby.test.MainTestSuite
    [junit] Tests run: 248, Failures: 0, Errors: 0, Time elapsed: 18.467 sec
    [junit]
    [junit] Testsuite: org.jruby.test.ScriptTestSuite
    [junit] testCompiler218:1 warning: multiple values for a block parameter
(0
for 1)
    [junit] FAILED Test IO 43 -- ./test\testIO.rb:150:in `test_ok'
    [junit] )
    [junit] Tests run: 27, Failures: 1, Errors: 0, Time elapsed: 8.452 sec
    [junit]
    [junit] ------------- Standard Error -----------------
    [junit] testCompiler218:1 warning: multiple values for a block parameter
(0
for 1)
    [junit] ------------- ---------------- ---------------
    [junit] Testcase: testIO.rb(org.jruby.test.ScriptTestSuite$ScriptTest):
FAILED
    [junit] test\testIO.rb failed, complete failure list follows:
    [junit] FAILED Test IO 43 -- ./test\testIO.rb:150:in `test_ok'
    [junit]
    [junit] junit.framework.AssertionFailedError: test\testIO.rb failed,
complet
e failure list follows:
    [junit] FAILED Test IO 43 -- ./test\testIO.rb:150:in `test_ok'
    [junit]
    [junit]     at org.jruby.test.ScriptTestSuite$ScriptTest.runTest
(ScriptTestS
uite.java:136)
    [junit]
    [junit]

BUILD FAILED
D:\Wirianto\Java\JRuby\build.xml:538: Test org.jruby.test.ScriptTestSuitefailed


Total time: 46 seconds

D:\Wirianto\Java\JRuby>dir Test*
 Volume in drive D is App
 Volume Serial Number is 84F8-3264

 Directory of D:\Wirianto\Java\JRuby

10/22/2007  10:55 PM    <DIR>          test
10/23/2007  02:06 PM                 0 Test2IO_tmp
10/23/2007  02:06 PM                 6 Test3IO_tmp
10/23/2007  02:06 PM                18 TestIO_tmp
               3 File(s)             24 bytes
               1 Dir(s)  22,167,941,120 bytes free

D:\Wirianto\Java\JRuby>jruby test\testIO.rb
Test IO : ................................................
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Tests: 48. (Ok: 48; Failed: 0)

D:\Wirianto\Java\JRuby>dir\w
 Volume in drive D is App
 Volume Serial Number is 84F8-3264

 Directory of D:\

File Not Found

Reply via email to