Community
Participate
Working Groups
Wrong number of characters in console. expected:<21015> but was:<21152> junit.framework.AssertionFailedError: Wrong number of characters in console. expected:<21015> but was:<21152> 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.TestCase.assertEquals(TestCase.java:401) at org.eclipse.jdt.debug.tests.core.ConsoleTests.utf8OutputTest(ConsoleTests.java:298) at org.eclipse.jdt.debug.tests.core.ConsoleTests.testBug545769_UTF8OutOdd(ConsoleTests.java:257) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at junit.framework.TestCase.runTest(TestCase.java:176) at junit.framework.TestCase.runBare(TestCase.java:141) at org.eclipse.jdt.debug.tests.AbstractDebugTest.runBare(AbstractDebugTest.java:2614) 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:252) at junit.framework.TestSuite.run(TestSuite.java:247) at junit.framework.TestSuite.runTest(TestSuite.java:252) at org.eclipse.jdt.debug.tests.DebugSuite$1.run(DebugSuite.java:61) at java.lang.Thread.run(Thread.java:748) https://download.eclipse.org/eclipse/downloads/drops4/I20190821-1800/testresults/html/org.eclipse.jdt.debug.tests_ep413I-unit-win32-java8_win32.win32.x86_64_8.0.html
@Paul, please look into it.
I assume it is the same intermittent problem as bug 549168 but this time the test did not displayed the error message. The length of the error message which caused bug 549168 is almost equal to the difference reported by the failure here. (maybe I missed a white space character) Will close it if the test is not failing again.
From the recent builds it worked except for one build. I still believe it's https://bugs.java.com/bugdatabase/view_bug.do?bug_id=6476706 so not eclipse.
New Gerrit change created: https://git.eclipse.org/r/148754
Test recently failed with another number of characters in console. Add some debug code to better see the problem.
Gerrit change https://git.eclipse.org/r/148754 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.debug.git/commit/?id=5fc95d503d91b2c17308d318420ebd29480dfeb1
Failed again! https://download.eclipse.org/eclipse/downloads/drops4/I20190904-1805/testresults/html/org.eclipse.jdt.debug.tests_ep413I-unit-cen64-gtk3-java8_linux.gtk.x86_64_8.0.html
And there is still no system. Last time failed testBug545769_UTF8InEven (bug 549168 comment 6) This time failed testBug545769_UTF8InOdd Will try to make the tests more stable.
Finally found something for the failing input tests. There must be a race condition in InputStreamMonitor. With enough repetitions I could trigger the failure and in this case the InputStreamMonitor queue is not empty but the thread is blocked on waiting for more input.
https://download.eclipse.org/eclipse/downloads/drops4/I20190909-1520/testresults/html/org.eclipse.jdt.debug.tests_ep414I-unit-win32-java8_win32.win32.x86_64_8.0.html
As I expected it is the JVM bug again. Since this test seems to be more prone to that error and the test does not depend on debug mode I will change it to run in RUN_MODE instead. Below the console output for reference: > !ENTRY org.eclipse.jdt.debug.tests 1 0 2019-09-10 00:28:33.143 > !MESSAGE [testBug545769_UTF8OutEven] setUp > üüüüüüüüüüüüüüüüüü > ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2 > JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [util.c:840] > > > !ENTRY org.eclipse.jdt.debug.tests 1 0 2019-09-10 00:28:33.945 > !MESSAGE [testBug545769_UTF8OutEven] tearDown
New Gerrit change created: https://git.eclipse.org/r/149232
Gerrit change https://git.eclipse.org/r/149232 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.debug.git/commit/?id=ae81effbc92e2153715e226d2dd3dbd01b60c97a
Thanks Sarika for merging. With those changes the tests should be stable now. You can reopen if one of the UTF8 tests fails again.
Tests are stable now.