GoogleCodeArchive / piccolo2d

Automatically exported from code.google.com/p/piccolo2d
0 stars 0 forks source link

PSwingTest unit test failure on linux #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
PSwingTest testReferences unit test fails on linux:

$ mvn install
...
Running edu.umd.cs.piccolox.pswing.PSwingTest
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.023 sec
<<< FAILURE!

Results :

Failed tests: 
  testReferences(edu.umd.cs.piccolox.pswing.PSwingTest)

Tests run: 4, Failures: 1, Errors: 0, Skipped: 0

$ cat extras/target/surefire-reports/edu.umd.cs.piccolox.pswing.PSwingTest.txt 
-------------------------------------------------------------------------------
Test set: edu.umd.cs.piccolox.pswing.PSwingTest
-------------------------------------------------------------------------------
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.023 sec
<<< FAILURE!
testReferences(edu.umd.cs.piccolox.pswing.PSwingTest)  Time elapsed: 1.01
sec  <<< FAILURE!
junit.framework.AssertionFailedError: The PSwing node should be garbage
collected after removal
        at junit.framework.Assert.fail(Assert.java:47)
        at junit.framework.Assert.assertTrue(Assert.java:20)
        at
edu.umd.cs.piccolox.pswing.PSwingTest.testReferences(PSwingTest.java:63)

Original issue reported on code.google.com by heue...@gmail.com on 28 Mar 2009 at 3:08

GoogleCodeExporter commented 9 years ago
PSwingTest.testReferences should be rewritten, as it is not a good idea to 
depend on
certian behaviour from the garbage collector.  For now I will simply remove it.

Original comment by heue...@gmail.com on 28 Mar 2009 at 3:12

GoogleCodeExporter commented 9 years ago
$ svn commit -m "Issue 79 : removing testReferences method which incorrectly 
depends
on certian behaviour from the garbage collector" .
Sending        extras/src/test/java/edu/umd/cs/piccolox/pswing/PSwingTest.java
Transmitting file data .
Committed revision 438.

Original comment by heue...@gmail.com on 28 Mar 2009 at 3:15

GoogleCodeExporter commented 9 years ago
I'm constantly running the tests on linux without problems.

Original comment by allain.lalonde on 30 Oct 2009 at 3:20