Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 516041

Summary: testConditionBreakpointReturnNonBooleanObject randomly fails
Product: [Eclipse Project] JDT Reporter: Andrey Loskutov <loskutov>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 4.7   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/96151
https://git.eclipse.org/c/jdt/eclipse.jdt.debug.git/commit/?id=4b9430970e360cfdd5b60d3c5a83f675a6b79c70
Whiteboard: stalebug

Description Andrey Loskutov CLA 2017-05-02 07:40:19 EDT
Saw this random test failure in Gerrit:

https://hudson.eclipse.org/platform/job/eclipse.jdt.debug-Gerrit/355/testReport/junit/org.eclipse.jdt.debug.tests.breakpoints/ConditionalBreakpointsTests/testConditionBreakpointReturnNonBooleanObject/

junit.framework.AssertionFailedError: null
	at junit.framework.Assert.fail(Assert.java:55)
	at junit.framework.Assert.assertTrue(Assert.java:22)
	at junit.framework.Assert.assertNotNull(Assert.java:256)
	at junit.framework.Assert.assertNotNull(Assert.java:248)
	at junit.framework.TestCase.assertNotNull(TestCase.java:417)
	at org.eclipse.jdt.debug.tests.breakpoints.ConditionalBreakpointsTests.testConditionBreakpointReturnNonBooleanObject(ConditionalBreakpointsTests.java:513)

The log shows:
!ENTRY org.eclipse.jdt.debug.tests 1 0 2017-05-02 06:08:30.689
!MESSAGE [testConditionBreakpointReturnNonBooleanObject] setUp

!ENTRY org.eclipse.jdt.debug.tests 1 0 2017-05-02 06:08:50.754
!MESSAGE [testConditionBreakpointReturnNonBooleanObject] tearDown

!ENTRY org.eclipse.jdt.debug.tests 4 0 2017-05-02 06:08:55.760
!MESSAGE [testConditionBreakpointReturnNonBooleanObject] Some job is still running or waiting to run: 'Process Console Input Job'/org.eclipse.debug.internal.ui.views.console.ProcessConsole$InputReadJob

!ENTRY org.eclipse.jdt.debug.tests 1 0 2017-05-02 06:08:55.761
!MESSAGE [testConditionBreakpointReturnNonBooleanObject] Trying to cancel running jobs: [Process Console Input Job(2669)]

!ENTRY org.eclipse.jdt.debug.tests 4 0 2017-05-02 06:08:55.767
!MESSAGE [testConditionBreakpointReturnNonBooleanObject] Some job is still running or waiting to run: 'Process Console Input Job'/org.eclipse.debug.internal.ui.views.console.ProcessConsole$InputReadJob

This is really puzzling, how launchToLineBreakpoint() can return null OR do not terminate properly without throwing an exception. At least the test could be changed a bit to make sure where the problem is.
Comment 1 Eclipse Genie CLA 2017-05-02 07:43:29 EDT
New Gerrit change created: https://git.eclipse.org/r/96151
Comment 3 Eclipse Genie CLA 2020-03-06 17:16:36 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.