Running FSTestSuite reports "Tests run: 150, Failures: 10, Errors: 4"

Project:JNode FS
Component:Code
Category:bug report
Priority:normal
Assigned:Fabien D
Status:active
Description

I am running FSTestSuite from a Eclipse JNode sandbox, launching the suite as a Java Application, with the JNode core classes on the bootclasspath after the Sun JDK. I've checked in some changes / fixes to FSTestSuite and friends to get this far, but we're now getting to the point where a JNode FS expert needs to take a look.

Here are the rest results:

.log4j:WARN No appenders could be found for logger (org.jnode.fs.ext2.Ext2FileSystem).
log4j:WARN Please initialize the log4j system properly.
..............F......F........E.E...........
....F......F........E.E...............F......F.
.......................F......F............
............F......F.........
Time: 19.827
There were 4 errors:
1) ConcurrentAccessFSTest.testWrite(OtherOS,ext2 rwnot formatted
File[diskimg.WRK 1M]) 
java.lang.Error: org.jnode.test.fs.filesystem.tests.Writer failed !
	at org.jnode.test.fs.filesystem.tests.Monitor.notifyError(ConcurrentAccessFSTest.java:157)
	at org.jnode.test.fs.filesystem.tests.Worker.run(ConcurrentAccessFSTest.java:239)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.Error: Error in worker thread
	at org.jnode.test.fs.filesystem.tests.Worker.run(ConcurrentAccessFSTest.java:227)
	... 1 more
Caused by: java.io.IOException
	at org.jnode.fs.ext2.Ext2File.write(Ext2File.java:327)
	at org.jnode.test.fs.filesystem.tests.Writer.doRun(ConcurrentAccessFSTest.java:261)
	at org.jnode.test.fs.filesystem.tests.Worker.run(ConcurrentAccessFSTest.java:225)
	... 1 more
Caused by: java.io.IOException: Can't write beyond the end of the file! (fileOffset: 20, getLength()2
	at org.jnode.fs.ext2.Ext2File.write(Ext2File.java:277)
	... 3 more
2) ConcurrentAccessFSTest.testReadWrite(OtherOS,ext2 rwnot formatted
File[diskimg.WRK 1M]) 
java.lang.Error: org.jnode.test.fs.filesystem.tests.Writer failed !
	at org.jnode.test.fs.filesystem.tests.Monitor.notifyError(ConcurrentAccessFSTest.java:157)
	at org.jnode.test.fs.filesystem.tests.Worker.run(ConcurrentAccessFSTest.java:239)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.Error: Error in worker thread
	at org.jnode.test.fs.filesystem.tests.Worker.run(ConcurrentAccessFSTest.java:227)
	... 1 more
Caused by: java.io.IOException
	at org.jnode.fs.ext2.Ext2File.write(Ext2File.java:327)
	at org.jnode.test.fs.filesystem.tests.Writer.doRun(ConcurrentAccessFSTest.java:261)
	at org.jnode.test.fs.filesystem.tests.Worker.run(ConcurrentAccessFSTest.java:225)
	... 1 more
Caused by: java.io.IOException: Can't write beyond the end of the file! (fileOffset: 20, getLength()2
	at org.jnode.fs.ext2.Ext2File.write(Ext2File.java:277)
	... 3 more
3) ConcurrentAccessFSTest.testWrite(OtherOS,ext2 rwnot formatted
File[diskimg.WRK 1M]) 
java.lang.Error: org.jnode.test.fs.filesystem.tests.Writer failed !
	at org.jnode.test.fs.filesystem.tests.Monitor.notifyError(ConcurrentAccessFSTest.java:157)
	at org.jnode.test.fs.filesystem.tests.Worker.run(ConcurrentAccessFSTest.java:239)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.Error: Error in worker thread
	at org.jnode.test.fs.filesystem.tests.Worker.run(ConcurrentAccessFSTest.java:227)
	... 1 more
Caused by: java.io.IOException
	at org.jnode.fs.ext2.Ext2File.write(Ext2File.java:327)
	at org.jnode.test.fs.filesystem.tests.Writer.doRun(ConcurrentAccessFSTest.java:261)
	at org.jnode.test.fs.filesystem.tests.Worker.run(ConcurrentAccessFSTest.java:225)
	... 1 more
Caused by: java.io.IOException: Can't write beyond the end of the file! (fileOffset: 20, getLength()2
	at org.jnode.fs.ext2.Ext2File.write(Ext2File.java:277)
	... 3 more
4) ConcurrentAccessFSTest.testReadWrite(OtherOS,ext2 rwnot formatted
File[diskimg.WRK 1M]) 
java.lang.Error: org.jnode.test.fs.filesystem.tests.Writer failed !
	at org.jnode.test.fs.filesystem.tests.Monitor.notifyError(ConcurrentAccessFSTest.java:157)
	at org.jnode.test.fs.filesystem.tests.Worker.run(ConcurrentAccessFSTest.java:239)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.Error: Error in worker thread
	at org.jnode.test.fs.filesystem.tests.Worker.run(ConcurrentAccessFSTest.java:227)
	... 1 more
Caused by: java.io.IOException
	at org.jnode.fs.ext2.Ext2File.write(Ext2File.java:327)
	at org.jnode.test.fs.filesystem.tests.Writer.doRun(ConcurrentAccessFSTest.java:261)
	at org.jnode.test.fs.filesystem.tests.Worker.run(ConcurrentAccessFSTest.java:225)
	... 1 more
Caused by: java.io.IOException: Can't write beyond the end of the file! (fileOffset: 20, getLength()2
	at org.jnode.fs.ext2.Ext2File.write(Ext2File.java:277)
	... 3 more
There were 10 failures:
1) ConcurrentAccessFSTest.testReadWrite(OtherOS,ext2 ronot formatted
File[diskimg.WRK 1M]) integrity test failed
	at org.jnode.test.fs.filesystem.tests.ConcurrentAccessFSTest.testReadWrite(ConcurrentAccessFSTest.java:87)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at org.jnode.test.fs.filesystem.FSTestSuite.main(FSTestSuite.java:78)
2) BasicFSTest.testRemoveThenRemountFSAndGetEntry(OtherOS,ext2 rwnot formatted
File[diskimg.WRK 1M]) must not contain the removed file
	at org.jnode.test.fs.filesystem.tests.BasicFSTest.testRemoveThenRemountFSAndGetEntry(BasicFSTest.java:175)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at org.jnode.test.fs.filesystem.FSTestSuite.main(FSTestSuite.java:78)
3) ConcurrentAccessFSTest.testReadWrite(OtherOS,ext2 ronot formatted
File[diskimg.WRK 1M]) integrity test failed
	at org.jnode.test.fs.filesystem.tests.ConcurrentAccessFSTest.testReadWrite(ConcurrentAccessFSTest.java:87)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at org.jnode.test.fs.filesystem.FSTestSuite.main(FSTestSuite.java:78)
4) BasicFSTest.testRemoveThenRemountFSAndGetEntry(OtherOS,ext2 rwnot formatted
File[diskimg.WRK 1M]) must not contain the removed file
	at org.jnode.test.fs.filesystem.tests.BasicFSTest.testRemoveThenRemountFSAndGetEntry(BasicFSTest.java:175)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at org.jnode.test.fs.filesystem.FSTestSuite.main(FSTestSuite.java:78)
5) ConcurrentAccessFSTest.testReadWrite(OtherOS,fat ronot formatted
File[diskimg.WRK 1M]) integrity test failed
	at org.jnode.test.fs.filesystem.tests.ConcurrentAccessFSTest.testReadWrite(ConcurrentAccessFSTest.java:87)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at org.jnode.test.fs.filesystem.FSTestSuite.main(FSTestSuite.java:78)
6) BasicFSTest.testRemoveThenRemountFSAndGetEntry(OtherOS,fat rwnot formatted
File[diskimg.WRK 1M]) must not contain the removed file
	at org.jnode.test.fs.filesystem.tests.BasicFSTest.testRemoveThenRemountFSAndGetEntry(BasicFSTest.java:175)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at org.jnode.test.fs.filesystem.FSTestSuite.main(FSTestSuite.java:78)
7) ConcurrentAccessFSTest.testReadWrite(OtherOS,fat ronot formatted
File[diskimg.WRK 1M]) integrity test failed
	at org.jnode.test.fs.filesystem.tests.ConcurrentAccessFSTest.testReadWrite(ConcurrentAccessFSTest.java:87)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at org.jnode.test.fs.filesystem.FSTestSuite.main(FSTestSuite.java:78)
Cool BasicFSTest.testRemoveThenRemountFSAndGetEntry(OtherOS,fat rwnot formatted
File[diskimg.WRK 1M]) must not contain the removed file
	at org.jnode.test.fs.filesystem.tests.BasicFSTest.testRemoveThenRemountFSAndGetEntry(BasicFSTest.java:175)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at org.jnode.test.fs.filesystem.FSTestSuite.main(FSTestSuite.java:78)
9) ConcurrentAccessFSTest.testReadWrite(OtherOS,fat ronot formatted
File[diskimg.WRK 1M]) integrity test failed
	at org.jnode.test.fs.filesystem.tests.ConcurrentAccessFSTest.testReadWrite(ConcurrentAccessFSTest.java:87)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at org.jnode.test.fs.filesystem.FSTestSuite.main(FSTestSuite.java:78)
10) BasicFSTest.testRemoveThenRemountFSAndGetEntry(OtherOS,fat rwnot formatted
File[diskimg.WRK 1M]) must not contain the removed file
	at org.jnode.test.fs.filesystem.tests.BasicFSTest.testRemoveThenRemountFSAndGetEntry(BasicFSTest.java:175)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at org.jnode.test.fs.filesystem.FSTestSuite.main(FSTestSuite.java:78)

FAILURES!!!
Tests run: 150,  Failures: 10,  Errors: 4

#1

Assigned to:Anonymous» Fabien D

Thanks for the report. I will try to fix that.