Should all JUnit tests succeed out-of-the-box?

21 views
Skip to first unread message

M Ellis

unread,
Jul 1, 2013, 8:10:08 PM7/1/13
to deuce-stm-...@googlegroups.com
I downloaded Deuce, opened it as an Eclipse (kepler) project, installed FindBugs, corrected the build path variables and ran the JUnit tests.  Not all of them pass; should they for the current download?  I'm particularly concerned about the fact that the AbortTest.java failed:

junit.framework.AssertionFailedError: expected:<0> but was:<1>
at junit.framework.Assert.fail(Assert.java:57)
at junit.framework.Assert.failNotEquals(Assert.java:329)
at junit.framework.Assert.assertEquals(Assert.java:78)
at junit.framework.Assert.assertEquals(Assert.java:234)
at junit.framework.Assert.assertEquals(Assert.java:241)
at org.deuce.utest.basic.AbortTest.testAbort(AbortTest.java:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:176)
at junit.framework.TestCase.runBare(TestCase.java:141)
at junit.framework.TestResult$1.protect(TestResult.java:122)
at junit.framework.TestResult.runProtected(TestResult.java:142)
at junit.framework.TestResult.run(TestResult.java:125)
at junit.framework.TestCase.run(TestCase.java:129)
at junit.framework.TestSuite.runTest(TestSuite.java:255)
at junit.framework.TestSuite.run(TestSuite.java:250)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

I'm using JUnit 4 instead of 3, but I wouldn't expect that to cause a failure of this type.  Please let me know what other information you need (or I need), and thanks for your help.

Guy Korland

unread,
Jul 2, 2013, 3:06:41 AM7/2/13
to deuce-stm-developers
Did you make sure the agent is installed when you're running the tests?

On Tue, Jul 2, 2013 at 3:10 AM, M Ellis <marqui...@gmail.com> wrote:
I'm using JUnit 4 instead of 3, but I wouldn't expect that to cause a failure of this type.  Please let me know what other information you need (or I need), and thanks for your help.



Regards,
Guy Korland


M Ellis

unread,
Jul 2, 2013, 10:06:36 AM7/2/13
to deuce-stm-...@googlegroups.com
I ran it with -javaagent:bin/deuceAgent.jar and 6/8 org.deuce.utest.reflection.AddressUtilTest tests plus the org.deuce.utest.basic.StaticFieldInheritanceTest still fail.  Are these example cases of when offline instrumentation is required?
Reply all
Reply to author
Forward
0 new messages