On Wednesday 25 October 2006 20:29 Volynets, Vera wrote:
> Geir
> Some tests launched by command "build test" fail.
> The idea of "build test" is to run it before each commit. In this way you
> can catch regressions. In order to effectively catch regressions, i.e.
> tests that started to fail after some change, it's necessary to have 'build
> test' pass in a stable way. One of the ways to achieve stable state is to
> exclude failing tests or tests which show unstable behavior. So I analysed
> statistics of test runs on win ia32 platform and made up a list of tests to
> be excluded: 1) smoke
> *** gc.LOS fails always on jitrino and interpreter, debug and release
On windows XP. Can we exclude it only for win32 and leave it on Linux?
> 2) kernel
> *** java.lang.ClasssGenericsTest and
> *** java.lang.ClassGenericsTest4 fail because of timeout, so I increase
> timeout in kernel.test.xml
These tests work for me on Windows. But on Linux these tests fail with lost of
different exceptions:
For java.lang.ClassGenericsTest:
java.lang.ClassNotFoundException: java.lang.ClassGenericsTest$Mc009^Z^Z^Z
java.lang.NoClassDefFoundError: java/lang/ClassGenericsTest$Mc007^Z
java.lang.TypeNotPresentException: Type
java.lang.ClassGenericsTest$Mc009\0d5\0b6\0db\080\0db\0b1 not present
For java.lang.ClassGenericsTest4:
Some NPEs from unobvious sources. I've attached two test reports to this
email. Anyways, it looks like timeout is not the case for these tests
failures.
> *** java.lang.ObjectTest fail on interpreter
> with following message: Testsuite: java.lang.ObjectTest
> Tests run: 18, Failures: 1, Errors: 0, Time elapsed: 6.109 sec
> Testcase: testWait1(java.lang.ObjectTest): FAILED
> An InterruptedException must be thrown in test thread!
> junit.framework.AssertionFailedError: An InterruptedException must be
> thrown in test thread!
This test works ok for me, probably after HARMONY-1823 was applied. Are you
sure you run the latest sources?
--
Gregory Shimansky, Intel Middleware Products Division
Testsuite: java.lang.ClassGenericsTest
Tests run: 8, Failures: 0, Errors: 2, Time elapsed: 1.371 sec
------------- Standard Output ---------------
TUuUuU;|7
T\0ce\091;|10
T\0d5\0b6\0db\080\0db\0b1;|26
T\0d5\0b6\0db\080\0db\0b13;|27
T\0d5\0b6\0db\080\0db\0b12;|27
T\0d5\0b6\0db\080\0db\0b11;|27
TUuUuU;|7
T\0ce\091;|10
T\0d5\0b6\0db\080\0db\0b1;|26
T\0d5\0b6\0db\080\0db\0b13;|27
T\0d5\0b6\0db\080\0db\0b12;|27
T\0d5\0b6\0db\080\0db\0b11;|27
------------- ---------------- ---------------
------------- Standard Error -----------------
Error:
AuxiliaryLoader.findClass(java.lang.ClassGenericsTest$Mc009\0d5\0b6\0db\080\0db\0b1):
java.lang.ClassNotFoundException: java.lang.ClassGenericsTest$Mc009
java.lang.ClassNotFoundException: java.lang.ClassGenericsTest$Mc009
at java.net.URLClassLoader.findClass(URLClassLoader.java:625)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader$SystemClassLoader.loadClass(Unknown Source)
at java.lang.reflect.VMReflection.invokeMethod(Native Method)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.harmony.lang.reflect.support.AuxiliaryLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivilegedImpl(Unknown Source)
at java.security.AccessController.doPrivileged(Unknown Source)
at
org.apache.harmony.lang.reflect.support.AuxiliaryLoader.findClass(Unknown
Source)
at
java.lang.reflect.Method$MethodData.initGenericExceptionTypes(Unknown Source)
at java.lang.reflect.Method.getGenericExceptionTypes(Unknown Source)
at java.lang.ClassGenericsTest.test_5(ClassGenericsTest.java:655)
at java.lang.reflect.VMReflection.invokeMethod(Native Method)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:128)
at junit.framework.TestResult$1.protect(TestResult.java:107)
at junit.framework.TestResult.runProtected(TestResult.java:135)
at junit.framework.TestResult.run(TestResult.java:104)
at junit.framework.TestCase.run(TestCase.java:121)
at junit.framework.TestSuite.runTest(TestSuite.java:231)
at junit.framework.TestSuite.run(TestSuite.java:224)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:294)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:670)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)
------------- ---------------- ---------------
Testcase: test_2(java.lang.ClassGenericsTest): Caused an ERROR
java/lang/ClassGenericsTest$Mc007
java.lang.NoClassDefFoundError: java/lang/ClassGenericsTest$Mc007
at java.lang.ClassGenericsTest.test_2(ClassGenericsTest.java:166)
at java.lang.reflect.VMReflection.invokeMethod(Native Method)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:128)
at junit.framework.TestResult$1.protect(TestResult.java:107)
at junit.framework.TestResult.runProtected(TestResult.java:135)
at junit.framework.TestResult.run(TestResult.java:104)
at junit.framework.TestCase.run(TestCase.java:121)
at junit.framework.TestSuite.runTest(TestSuite.java:231)
at junit.framework.TestSuite.run(TestSuite.java:224)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:294)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:670)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)
Testcase: test_5(java.lang.ClassGenericsTest): Caused an ERROR
Type java.lang.ClassGenericsTest$Mc009\0d5\0b6\0db\080\0db\0b1 not present
java.lang.TypeNotPresentException: Type
java.lang.ClassGenericsTest$Mc009\0d5\0b6\0db\080\0db\0b1 not present
at
java.lang.reflect.Method$MethodData.initGenericExceptionTypes(Unknown Source)
at java.lang.reflect.Method.getGenericExceptionTypes(Unknown Source)
at java.lang.ClassGenericsTest.test_5(ClassGenericsTest.java:655)
at java.lang.reflect.VMReflection.invokeMethod(Native Method)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:128)
at junit.framework.TestResult$1.protect(TestResult.java:107)
at junit.framework.TestResult.runProtected(TestResult.java:135)
at junit.framework.TestResult.run(TestResult.java:104)
at junit.framework.TestCase.run(TestCase.java:121)
at junit.framework.TestSuite.runTest(TestSuite.java:231)
at junit.framework.TestSuite.run(TestSuite.java:224)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:294)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:670)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)
Caused by: java.lang.ClassNotFoundException:
java.lang.ClassGenericsTest$Mc009\0d5\0b6\0db\080\0db\0b1
at
org.apache.harmony.lang.reflect.support.AuxiliaryLoader.findClass(Unknown
Source)
at
java.lang.reflect.Method$MethodData.initGenericExceptionTypes(Unknown Source)
... 15 more
Testsuite: java.lang.ClassGenericsTest4
Tests run: 3, Failures: 0, Errors: 1, Time elapsed: 0.418 sec
------------- Standard Output ---------------
/amd64/home/gregory/work/Harmony/harmony/enhanced/drlvm/trunk/build/lnx_ia32_gcc_debug/semis/kernel.tests/resources/org/apache/harmony/lang/generics/BadSignatureTemplate.class
------------- ---------------- ---------------
------------- Standard Error -----------------
java.lang.Exception
at
org.apache.harmony.lang.reflect.parser.SignatureLexer2.nextToken(Unknown Source)
at antlr.TokenBuffer.fill(TokenBuffer.java:67)
at antlr.TokenBuffer.LA(TokenBuffer.java:81)
at antlr.LLkParser.LA(LLkParser.java:52)
at
org.apache.harmony.lang.reflect.parser.SignatureParser.pr__SIMPLE_CLASS_TYPE_SIGNATURE(Unknown
Source)
at
org.apache.harmony.lang.reflect.parser.SignatureParser.pr__CLASS_TYPE_SIGNATURE_SUFFIXES(Unknown
Source)
at
org.apache.harmony.lang.reflect.parser.SignatureParser.pr__REFERENCE(Unknown
Source)
at
org.apache.harmony.lang.reflect.parser.SignatureParser.pr__CLASS_TYPE_SIGNATURE(Unknown
Source)
at
org.apache.harmony.lang.reflect.parser.SignatureParser.pr__FIELD_TYPE_SIGNATURE(Unknown
Source)
at
org.apache.harmony.lang.reflect.parser.SignatureParser.pr__BOUND(Unknown Source)
at
org.apache.harmony.lang.reflect.parser.SignatureParser.pr__CLASS_OR_INTERFACE_BOUNDS(Unknown
Source)
at
org.apache.harmony.lang.reflect.parser.SignatureParser.pr__FORMAL_TYPE_PARAMETER(Unknown
Source)
at
org.apache.harmony.lang.reflect.parser.SignatureParser.pr__FORMAL_TYPE_PARAMETERS(Unknown
Source)
at
org.apache.harmony.lang.reflect.parser.SignatureParser.pr__FORMAL_TYPE_PARAMETERS_DECL(Unknown
Source)
at
org.apache.harmony.lang.reflect.parser.SignatureParser.pr__CLASS_DECL(Unknown
Source)
at
org.apache.harmony.lang.reflect.parser.SignatureParser.pr__DECL(Unknown Source)
at
org.apache.harmony.lang.reflect.parser.SignatureParser.parseSignature(Unknown
Source)
at org.apache.harmony.lang.reflect.parser.Parser.parseSignature(Unknown
Source)
at java.lang.Class$GACache.getTypeParameters(Unknown Source)
at java.lang.Class.getTypeParameters(Unknown Source)
at
org.apache.harmony.lang.generics.BadSignatureTemplate.test_1(BadSignatureTemplate.java:13)
at java.lang.reflect.VMReflection.invokeMethod(Native Method)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.lang.ClassGenericsTest4.test_3(ClassGenericsTest4.java:793)
at java.lang.reflect.VMReflection.invokeMethod(Native Method)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:128)
at junit.framework.TestResult$1.protect(TestResult.java:107)
at junit.framework.TestResult.runProtected(TestResult.java:135)
at junit.framework.TestResult.run(TestResult.java:104)
at junit.framework.TestCase.run(TestCase.java:121)
at junit.framework.TestSuite.runTest(TestSuite.java:231)
at junit.framework.TestSuite.run(TestSuite.java:224)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:294)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:670)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)
===nextToken===: java.lang.Exception
antlr.TokenStreamException
at
org.apache.harmony.lang.reflect.parser.SignatureLexer2.nextToken(Unknown Source)
at antlr.TokenBuffer.fill(TokenBuffer.java:67)
at antlr.TokenBuffer.LA(TokenBuffer.java:81)
at antlr.LLkParser.LA(LLkParser.java:52)
at
org.apache.harmony.lang.reflect.parser.SignatureParser.pr__SIMPLE_CLASS_TYPE_SIGNATURE(Unknown
Source)
at
org.apache.harmony.lang.reflect.parser.SignatureParser.pr__CLASS_TYPE_SIGNATURE_SUFFIXES(Unknown
Source)
at
org.apache.harmony.lang.reflect.parser.SignatureParser.pr__REFERENCE(Unknown
Source)
at
org.apache.harmony.lang.reflect.parser.SignatureParser.pr__CLASS_TYPE_SIGNATURE(Unknown
Source)
at
org.apache.harmony.lang.reflect.parser.SignatureParser.pr__FIELD_TYPE_SIGNATURE(Unknown
Source)
at
org.apache.harmony.lang.reflect.parser.SignatureParser.pr__BOUND(Unknown Source)
at
org.apache.harmony.lang.reflect.parser.SignatureParser.pr__CLASS_OR_INTERFACE_BOUNDS(Unknown
Source)
at
org.apache.harmony.lang.reflect.parser.SignatureParser.pr__FORMAL_TYPE_PARAMETER(Unknown
Source)
at
org.apache.harmony.lang.reflect.parser.SignatureParser.pr__FORMAL_TYPE_PARAMETERS(Unknown
Source)
at
org.apache.harmony.lang.reflect.parser.SignatureParser.pr__FORMAL_TYPE_PARAMETERS_DECL(Unknown
Source)
at
org.apache.harmony.lang.reflect.parser.SignatureParser.pr__CLASS_DECL(Unknown
Source)
at
org.apache.harmony.lang.reflect.parser.SignatureParser.pr__DECL(Unknown Source)
at
org.apache.harmony.lang.reflect.parser.SignatureParser.parseSignature(Unknown
Source)
at org.apache.harmony.lang.reflect.parser.Parser.parseSignature(Unknown
Source)
at java.lang.Class$GACache.getTypeParameters(Unknown Source)
at java.lang.Class.getTypeParameters(Unknown Source)
at
org.apache.harmony.lang.generics.BadSignatureTemplate.test_1(BadSignatureTemplate.java:13)
at java.lang.reflect.VMReflection.invokeMethod(Native Method)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.lang.ClassGenericsTest4.test_3(ClassGenericsTest4.java:793)
at java.lang.reflect.VMReflection.invokeMethod(Native Method)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:128)
at junit.framework.TestResult$1.protect(TestResult.java:107)
at junit.framework.TestResult.runProtected(TestResult.java:135)
at junit.framework.TestResult.run(TestResult.java:104)
at junit.framework.TestCase.run(TestCase.java:121)
at junit.framework.TestSuite.runTest(TestSuite.java:231)
at junit.framework.TestSuite.run(TestSuite.java:224)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:294)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:670)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)
TokenStreamException: antlr.TokenStreamException
------------- ---------------- ---------------
Testcase: test_2(java.lang.ClassGenericsTest4): Caused an ERROR
null
java.lang.NullPointerException
at java.lang.ClassGenericsTest4.test_2(ClassGenericsTest4.java:274)
at java.lang.reflect.VMReflection.invokeMethod(Native Method)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:128)
at junit.framework.TestResult$1.protect(TestResult.java:107)
at junit.framework.TestResult.runProtected(TestResult.java:135)
at junit.framework.TestResult.run(TestResult.java:104)
at junit.framework.TestCase.run(TestCase.java:121)
at junit.framework.TestSuite.runTest(TestSuite.java:231)
at junit.framework.TestSuite.run(TestSuite.java:224)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:294)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:670)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)