Skip to main content

A few tests failed

4 replies [Last post]
tttito
Offline
Joined: 2007-09-22
Points: 0

I run "ant all-tests" on Mobicents 1.0.03.GA with JBoss 4.2.1 on Win2000 5.0 Pro SP4.
Here is what I got:

Results
Tests that passed 466
Tests that failed 4
Tests that had errors 4
Total 474

Here is the report on the failed tests:

JavaTest : Tests that failed
Tests are grouped by their final status message.

58 errors

tests/api/signaturetest/SleeSignatureTest.xml : SleeSignatureTest

Failed assertion ID: 1137 Failure context/reason: Exception: com.opencloud.sleetck.lib.TCKTestFailureException => Some assertions failed: The SLEE denied the Sbb a permission which it was expected to grant: (java.util.PropertyPermission * read) (assertion 1137) The SLEE granted the Sbb a permission which it was expected to deny: (java.lang.RuntimePermission stopThread) (assertion 1139) Stack Trace: com.opencloud.sleetck.lib.TCKTestFailureException: Some assertions failed: The SLEE denied the Sbb a permission which it was expected to grant: (java.util.PropertyPermission * read) (assertion 1137) The SLEE granted the Sbb a permission which it was expected to deny: (java.lang.RuntimePermission stopThread) (assertion 1139) at com.opencloud.sleetck.lib.testsuite.runtime.security.SecurityPermissionsTestSbb.onTCKResourceEventX1(SecurityPermissionsTestSbb.java:50) 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 org.mobicents.slee.runtime.SbbEntity.invokeEventHandler(SbbEntity.java:1385) at org.mobicents.slee.runtime.EventRouterImpl.routeQueuedEvent(EventRouterImpl.java:1091) at org.mobicents.slee.runtime.EventRouterImpl.access$100(EventRouterImpl.java:72) at org.mobicents.slee.runtime.EventRouterImpl$EventExecutor.run(EventRouterImpl.java:166) at EDU.oswego.cs.dl.util.concurrent.QueuedExecutor$RunLoop.run(QueuedExecutor.java:89) at java.lang.Thread.run(Thread.java:619)

tests/runtime/security/SecurityPermissionsTest.xml : SecurityPermissionsTest

Failed assertion ID: 4507 Failure context/reason: Exception: com.opencloud.sleetck.lib.TCKTestFailureException => ActivityContextInterface.isEnding should return false for an activity that is not ending Stack Trace: com.opencloud.sleetck.lib.TCKTestFailureException: ActivityContextInterface.isEnding should return false for an activity that is not ending at com.opencloud.sleetck.lib.testsuite.activities.activitycontextinterface.Test4506Sbb.fail(Test4506Sbb.java:105) at com.opencloud.sleetck.lib.testsuite.activities.activitycontextinterface.Test4506Sbb.onTest4506Event(Test4506Sbb.java:63) 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 org.mobicents.slee.runtime.SbbEntity.invokeEventHandler(SbbEntity.java:1385) at org.mobicents.slee.runtime.EventRouterImpl.routeQueuedEvent(EventRouterImpl.java:1091) at org.mobicents.slee.runtime.EventRouterImpl.access$100(EventRouterImpl.java:72) at org.mobicents.slee.runtime.EventRouterImpl$EventExecutor.run(EventRouterImpl.java:166) at EDU.oswego.cs.dl.util.concurrent.QueuedExecutor$RunLoop.run(QueuedExecutor.java:89) at java.lang.Thread.run(Thread.java:619)

tests/activities/activitycontextinterface/Test4506Test.xml : Test4506Test

Failed assertion ID: 4631 Failure context/reason: Exception: com.opencloud.sleetck.lib.TCKTestFailureException => UsageNotification.hashCode() returned an unexpected hash code. Expected=-231325133,actual=-1994483229. Hashcode should be the logical XOR of the hash codes of the Service identifier, the SBB identifier, and the usage parameter name. Stack Trace: com.opencloud.sleetck.lib.TCKTestFailureException: UsageNotification.hashCode() returned an unexpected hash code. Expected=-231325133,actual=-1994483229. Hashcode should be the logical XOR of the hash codes of the Service identifier, the SBB identifier, and the usage parameter name. at com.opencloud.sleetck.lib.testsuite.javax.slee.usage.UsageNotification.Test4203Test.auditNotification(Test4203Test.java:112) at com.opencloud.sleetck.lib.testsuite.javax.slee.usage.UsageNotification.Test4203Test.run(Test4203Test.java:56) at com.opencloud.sleetck.lib.infra.SleeTCKScript.run(Unknown Source) at com.sun.javatest.Script.run(Script.java:216) at com.sun.javatest.Harness.runTest(Harness.java:628) at com.sun.javatest.Harness.access$800(Harness.java:26) at com.sun.javatest.Harness$2.run(Harness.java:727)

tests/javax/slee/usage/UsageNotification/Test4203Test.xml : Test4203Test

Here is the report on tests that had errors

JavaTest : Tests that had errors
Tests are grouped by their final status message.
===================================================================================== | TOTAL TESTS: 25 |PASSED: 24 |FAILED: 0 |ERRORS: 1 ===================================================================================== ***********| TESTCLASS: org.mobicents.slee.container.management.jmx.test.ZSleeBeanShellUtilTest |TEST: testService |RESULT: ERROR |MESSAGE: null *********** ***********| TESTCLASS: org.mobicents.slee.runtime.cache.tests.ZBasicCacheableMapTest |TEST: testContainsUnexistentKey |RESULT: PASSED |MESSAGE: null *********** ***********| TESTCLASS: org.mobicents.slee.runtime.cache.tests.ZBasicCacheableMapTest |TEST: testContainsExistingKey |RESULT: PASSED |MESSAGE: null *********** ***********| TESTCLASS: org.mobicents.slee.runtime.cache.tests.ZBasicCacheableMapTest |TEST: testGetExistingEntry |RESULT: PASSED |MESSAGE: null *********** ***********| TESTCLASS: org.mobicents.slee.runtime.cache.tests.ZBasicCacheableMapTest |TEST: testGetUnsetEntry |RESULT: PASSED |MESSAGE: null *********** ***********| TESTCLASS: org.mobicents.slee.runtime.cache.tests.ZBasicCacheableMapTest |TEST: testPutNullKey |RESULT: PASSED |MESSAGE: null *********** ***********| TESTCLASS: org.mobicents.slee.runtime.cache.tests.ZBasicCacheableMapTest |TEST: testPutNullValue |RESULT: PASSED |MESSAGE: null *********** ***********| TESTCLASS: org.mobicents.slee.runtime.cache.tests.ZBasicCacheableMapTest |TEST: testGetAfterRemove |RESULT: PASSED |MESSAGE: null *********** ***********| TESTCLASS: org.mobicents.slee.runtime.cache.tests.ZBasicCacheableMapTest |TEST: testPutAfterRemove |RESULT: PASSED |MESSAGE: null *********** ***********| TESTCLASS: org.mobicents.slee.runtime.cache.tests.ZCacheableSetAndMapEqualsTest |TEST: testCacheableMapEquality |RESULT: PASSED |MESSAGE: null *********** ***********| TESTCLASS: org.mobicents.slee.runtime.cache.tests.ZCacheableSetAndMapEqualsTest |TEST: testCacheableSetEquality |RESULT: PASSED |MESSAGE: null *********** ***********| TESTCLASS: org.mobicents.slee.runtime.cache.tests.ZCacheableSetAndMapEqualsTest |TEST: testCacheableSetConcurrentAccess |RESULT: PASSED |MESSAGE: null *********** ***********| TESTCLASS: org.mobicents.slee.runtime.cache.tests.ZCacheableSetAndMapEqualsTest |TEST: testCacheableMapConcurrentAccess |RESULT: PASSED |MESSAGE: null *********** ***********| TESTCLASS: org.mobicents.slee.runtime.cache.tests.ZConcurrencyCacheableMapTest |TEST: testWriteInTx1CommitReadInTx2 |RESULT: PASSED |MESSAGE: null *********** ***********| TESTCLASS: org.mobicents.slee.runtime.cache.tests.ZConcurrencyCacheableMapTest |TEST: testPutRemoveCommitRead |RESULT: PASSED |MESSAGE: null *********** ***********| TESTCLASS: org.mobicents.slee.runtime.cache.tests.ZConcurrencyCacheableMapTest |TEST: testPutNullCommitRead |RESULT: PASSED |MESSAGE: null *********** ***********| TESTCLASS: org.mobicents.slee.runtime.cache.tests.ZConcurrencyCacheableMapTest |TEST: testWriteInTx1RollbackReadInTx2 |RESULT: PASSED |MESSAGE: null *********** ***********| TESTCLASS: org.mobicents.slee.runtime.cache.tests.ZConcurrencyCacheableMapTest |TEST: testPhantomReadsDisallowed |RESULT: PASSED |MESSAGE: null *********** ***********| TESTCLASS: org.mobicents.slee.runtime.cache.tests.ZConcurrencyCacheableMapTest |TEST: testWriteRemoveCommitRead |RESULT: PASSED |MESSAGE: null *********** ***********| TESTCLASS: org.mobicents.slee.runtime.cache.tests.ZConcurrentTxOptimizationTest |TEST: testBadIsolationProof |RESULT: PASSED |MESSAGE: null *********** ***********| TESTCLASS: org.mobicents.slee.runtime.cache.tests.ZXACacheTest |TEST: testNewCacheableMapInstance |RESULT: PASSED |MESSAGE: null *********** ***********| TESTCLASS: org.mobicents.slee.runtime.cache.tests.ZXACacheTest |TEST: testNewCMapForNullKey |RESULT: PASSED |MESSAGE: null *********** ***********| TESTCLASS: org.mobicents.slee.runtime.cache.tests.ZXACacheTest |TEST: testNewCSet |RESULT: PASSED |MESSAGE: null *********** ***********| TESTCLASS: org.mobicents.slee.runtime.cache.tests.ZXACacheTest |TEST: testNewCSetForNullKey |RESULT: PASSED |MESSAGE: null *********** ***********| TESTCLASS: org.mobicents.slee.runtime.cache.tests.ZXACacheTest |TEST: testGetMapWithoutTransaction |RESULT: PASSED |MESSAGE: null *********** =====================================================================================
tests/org/mobicents/sleetests/junit/wrapper/JunitWrapperTest.xml : JunitWrappingTest
Timed out waiting for condition: Test did not complete within timeout
tests/org/mobicents/sleetests/container/entitiesRemoval/EntitiesRemovalTest.xml : EntitiesRemovalTest
tests/org/mobicents/sleetests/ejbconnectionproxy/RemoteAccess/RemoteAccessTest.xml : ejbRemoteAccessTest
tests/org/mobicents/sleetests/sleeservice/RemoteAccess/RemoteAccessTest.xml : RemoteAccessTest

I am running Mobi on a small machine, so I guess some fails may be related to that.

I welcome any feedback.

t

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tttito
Offline
Joined: 2007-09-22
Points: 0

Thanks for your reply. I was actually using a CVS head version from a few days ago. I got the version number from the version.properties file, which I gather is meaningless for CVS versions. It's all clear now.

eduardomartins
Offline
Joined: 2005-10-10
Points: 0

Try to update and check results again.

tttito
Offline
Joined: 2007-09-22
Points: 0

I just did.
Test results: passed: 470; failed: 3; error: 1.
Cheers.
t

eduardomartins
Offline
Joined: 2005-10-10
Points: 0

You run 1.03 on JBoss 4.2.1 GA, did you hack the code? It's for JBoss 3. Anyway that's an expected result for that source, if you try current code at CVS head you will get 3 Fails and 1 Error. The error is a junit test being worked out and the 3 failures are either because we already use some SLEE 1.1 libs or because a proper setup is needed (security). At the moment we consider the core source 100% green and pretty stable, without leaks. Last test I made was ~1 million calls with the memory always stable.

Soon we will release the current CVS head as Mobicents 1.2 Beta, and if everything is ok, which is what we expect, we will move that release to GA very soon.

Regards,

Eduardo