Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326410 - test failures on Mac: restore top index
Summary: test failures on Mac: restore top index
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.7   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.7 M2   Edit
Assignee: Pawel Piech CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-28 09:26 EDT by Darin Wright CLA
Modified: 2011-05-26 14:46 EDT (History)
3 users (show)

See Also:


Attachments
Fix. (3.41 KB, patch)
2010-09-28 18:07 EDT, Pawel Piech CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Wright CLA 2010-09-28 09:26:52 EDT
Two tests failed in the nightly build on Mac. I believe they are new tests:

Test failed: expected:<5> but was:<4> fListener = Viewer Update Listener fLabelUpdatesComplete = true fLabelUpdatesRunning = 0 fLabelUpdatesRunning = [] fLabelUpdatesCompleted = [ILabelUpdate: 5, ILabelUpdate: 2, ILabelUpdate: 8, ILabelUpdate: 4, ILabelUpdate: 7, ILabelUpdate: 3, ILabelUpdate: 6, ILabelUpdate: 1] fLabelUpdates = (EMPTY) fViewerUpdatesComplete = true fViewerUpdatesRunning = 0 fHasChildrenUpdatesRunning = [] fHasChildrenUpdatesCompleted = [IHasChildrenUpdate: 7, IHasChildrenUpdate: 1, IHasChildrenUpdate: 3, IHasChildrenUpdate: 4, IHasChildrenUpdate: 2, IHasChildrenUpdate: 8, IHasChildrenUpdate: 5, IHasChildrenUpdate: 6] fHasChildrenUpdates = (EMPTY) fChildCountUpdatesRunning = [IChildrenUpdate: root {0->8}] fChildCountUpdatesCompleted = [IChildrenCountUpdate: root] fChildCountUpdates = (EMPTY) fChildrenUpdatesRunning = [] fChildrenUpdatesCompleted = [IChildrenUpdate: root {0->8}] fChildrenUpdates = (EMPTY) fModelChangedComplete = true fStateRestoreComplete = false fProxyModels = [] fTimeoutInterval = 60000 

org.eclipse.core.commands.ExecutionException: Test failed: expected:<5> but was:<4>
fListener = Viewer Update Listener
fLabelUpdatesComplete = true
fLabelUpdatesRunning = 0
fLabelUpdatesRunning = []
fLabelUpdatesCompleted = [ILabelUpdate: 5, ILabelUpdate: 2, ILabelUpdate: 8, ILabelUpdate: 4, ILabelUpdate: 7, ILabelUpdate: 3, ILabelUpdate: 6, ILabelUpdate: 1]
fLabelUpdates = (EMPTY)
fViewerUpdatesComplete = true
fViewerUpdatesRunning = 0
fHasChildrenUpdatesRunning = []
fHasChildrenUpdatesCompleted = [IHasChildrenUpdate: 7, IHasChildrenUpdate: 1, IHasChildrenUpdate: 3, IHasChildrenUpdate: 4, IHasChildrenUpdate: 2, IHasChildrenUpdate: 8, IHasChildrenUpdate: 5, IHasChildrenUpdate: 6]
fHasChildrenUpdates = (EMPTY)
fChildCountUpdatesRunning = [IChildrenUpdate: root {0->8}]
fChildCountUpdatesCompleted = [IChildrenCountUpdate: root]
fChildCountUpdates = (EMPTY)
fChildrenUpdatesRunning = []
fChildrenUpdatesCompleted = [IChildrenUpdate: root {0->8}]
fChildrenUpdates = (EMPTY)
fModelChangedComplete = true
fStateRestoreComplete = false
fProxyModels = []
fTimeoutInterval = 60000
at org.eclipe.debug.tests.viewer.model.JFaceViewerTopIndexTests.runTest(JFaceViewerTopIndexTests.java:76)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:376)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:209)
at org.eclipse.test.UITestApplication$2.run(UITestApplication.java:195)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3736)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3427)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.test.UITestApplication.runApplication(UITestApplication.java:138)
at org.eclipse.test.UITestApplication.run(UITestApplication.java:60)
at org.eclipse.test.UITestApplication.start(UITestApplication.java:210)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:621)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:576)
at org.eclipse.equinox.launcher.Main.run(Main.java:1409)
at org.eclipse.equinox.launcher.Main.main(Main.java:1385)
at org.eclipse.core.launcher.Main.main(Main.java:34)
Caused by: junit.framework.AssertionFailedError: expected:<5> but was:<4>
at org.eclipe.debug.tests.viewer.model.JFaceViewerTopIndexTests.testRestoreTopIndex(JFaceViewerTopIndexTests.java:125)
at org.eclipe.debug.tests.viewer.model.JFaceViewerTopIndexTests.runTest(JFaceViewerTopIndexTests.java:74)


And



Test failed: expected:<9> but was:<8> fListener = Viewer Update Listener fLabelUpdatesComplete = true fLabelUpdatesRunning = 0 fLabelUpdatesRunning = [] fLabelUpdatesCompleted = [ILabelUpdate: 4, ILabelUpdate: 6, ILabelUpdate: 1, ILabelUpdate: 2, ILabelUpdate: 10.1, ILabelUpdate: 10.2, ILabelUpdate: 10.1, ILabelUpdate: 5, ILabelUpdate: 10, ILabelUpdate: 9, ILabelUpdate: 7, ILabelUpdate: 8, ILabelUpdate: 10, ILabelUpdate: 10.2, ILabelUpdate: 3] fLabelUpdates = (EMPTY) fViewerUpdatesComplete = true fViewerUpdatesRunning = 0 fHasChildrenUpdatesRunning = [] fHasChildrenUpdatesCompleted = [IHasChildrenUpdate: 10.2, IHasChildrenUpdate: 10, IHasChildrenUpdate: 10.2, IHasChildrenUpdate: 1, IHasChildrenUpdate: 8, IHasChildrenUpdate: 4, IHasChildrenUpdate: 2, IHasChildrenUpdate: 5, IHasChildrenUpdate: 3, IHasChildrenUpdate: 9, IHasChildrenUpdate: 10, IHasChildrenUpdate: 7, IHasChildrenUpdate: 10.1, IHasChildrenUpdate: 6, IHasChildrenUpdate: 10.1] fHasChildrenUpdates = (EMPTY) fChildCountUpdatesRunning = [IChildrenUpdate: root {9->10}, IChildrenUpdate: 10 {0->2}, IChildrenUpdate: root {0->10}, IChildrenUpdate: 10 {0->2}] fChildCountUpdatesCompleted = [IChildrenCountUpdate: 10, IChildrenCountUpdate: root, IChildrenCountUpdate: 10] fChildCountUpdates = (EMPTY) fChildrenUpdatesRunning = [] fChildrenUpdatesCompleted = [IChildrenUpdate: root {9->10}, IChildrenUpdate: 10 {0->2}, IChildrenUpdate: root {0->10}, IChildrenUpdate: 10 {0->2}] fChildrenUpdates = (EMPTY) fModelChangedComplete = true fStateRestoreComplete = false fProxyModels = [] fTimeoutInterval = 60000 

org.eclipse.core.commands.ExecutionException: Test failed: expected:<9> but was:<8>
fListener = Viewer Update Listener
fLabelUpdatesComplete = true
fLabelUpdatesRunning = 0
fLabelUpdatesRunning = []
fLabelUpdatesCompleted = [ILabelUpdate: 4, ILabelUpdate: 6, ILabelUpdate: 1, ILabelUpdate: 2, ILabelUpdate: 10.1, ILabelUpdate: 10.2, ILabelUpdate: 10.1, ILabelUpdate: 5, ILabelUpdate: 10, ILabelUpdate: 9, ILabelUpdate: 7, ILabelUpdate: 8, ILabelUpdate: 10, ILabelUpdate: 10.2, ILabelUpdate: 3]
fLabelUpdates = (EMPTY)
fViewerUpdatesComplete = true
fViewerUpdatesRunning = 0
fHasChildrenUpdatesRunning = []
fHasChildrenUpdatesCompleted = [IHasChildrenUpdate: 10.2, IHasChildrenUpdate: 10, IHasChildrenUpdate: 10.2, IHasChildrenUpdate: 1, IHasChildrenUpdate: 8, IHasChildrenUpdate: 4, IHasChildrenUpdate: 2, IHasChildrenUpdate: 5, IHasChildrenUpdate: 3, IHasChildrenUpdate: 9, IHasChildrenUpdate: 10, IHasChildrenUpdate: 7, IHasChildrenUpdate: 10.1, IHasChildrenUpdate: 6, IHasChildrenUpdate: 10.1]
fHasChildrenUpdates = (EMPTY)
fChildCountUpdatesRunning = [IChildrenUpdate: root {9->10}, IChildrenUpdate: 10 {0->2}, IChildrenUpdate: root {0->10}, IChildrenUpdate: 10 {0->2}]
fChildCountUpdatesCompleted = [IChildrenCountUpdate: 10, IChildrenCountUpdate: root, IChildrenCountUpdate: 10]
fChildCountUpdates = (EMPTY)
fChildrenUpdatesRunning = []
fChildrenUpdatesCompleted = [IChildrenUpdate: root {9->10}, IChildrenUpdate: 10 {0->2}, IChildrenUpdate: root {0->10}, IChildrenUpdate: 10 {0->2}]
fChildrenUpdates = (EMPTY)
fModelChangedComplete = true
fStateRestoreComplete = false
fProxyModels = []
fTimeoutInterval = 60000
at org.eclipe.debug.tests.viewer.model.JFaceViewerTopIndexTests.runTest(JFaceViewerTopIndexTests.java:76)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:376)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:209)
at org.eclipse.test.UITestApplication$2.run(UITestApplication.java:195)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3736)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3427)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.test.UITestApplication.runApplication(UITestApplication.java:138)
at org.eclipse.test.UITestApplication.run(UITestApplication.java:60)
at org.eclipse.test.UITestApplication.start(UITestApplication.java:210)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:621)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:576)
at org.eclipse.equinox.launcher.Main.run(Main.java:1409)
at org.eclipse.equinox.launcher.Main.main(Main.java:1385)
at org.eclipse.core.launcher.Main.main(Main.java:34)
Caused by: junit.framework.AssertionFailedError: expected:<9> but was:<8>
at org.eclipe.debug.tests.viewer.model.JFaceViewerTopIndexTests.testRestoreTopTriggersExpand(JFaceViewerTopIndexTests.java:295)
at org.eclipe.debug.tests.viewer.model.JFaceViewerTopIndexTests.runTest(JFaceViewerTopIndexTests.java:74)
Comment 1 Pawel Piech CLA 2010-09-28 18:07:42 EDT
Created attachment 179796 [details]
Fix.
Comment 2 Pawel Piech CLA 2010-09-28 18:10:53 EDT
It seems that this is caused by a known issue in bug 116105.  I changed the tests so that they don't verify the item after calling reveal.  Since the error on a mac is off only by one element, the tests should still be effective.
Comment 3 Pawel Piech CLA 2011-05-06 18:16:55 EDT
Failures gone from nightly tests.