1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-03 21:53:39 +02:00

[255023][testing] Rename testBug251625 into testBug255023

This commit is contained in:
Martin Oberhuber 2008-11-12 12:50:35 +00:00
parent 160ed47ae1
commit 586f16b958

View file

@ -68,11 +68,11 @@ public class RSEConnectionTestCase extends RSEBaseConnectionTestCase {
* rarely so there is much to refresh. This might be due to * rarely so there is much to refresh. This might be due to
* the elementComparer only comparing by absolute name. * the elementComparer only comparing by absolute name.
*/ */
public void testBug251625() throws Exception { public void testBug255023() throws Exception {
// -test-author-:MartinOberhuber // -test-author-:MartinOberhuber
if (isTestDisabled()) if (isTestDisabled())
return; return;
Job j = new Job("testBug251625") { Job j = new Job("testBug255023") {
protected IStatus run(IProgressMonitor monitor) { protected IStatus run(IProgressMonitor monitor) {
try { try {
@ -88,6 +88,15 @@ public class RSEConnectionTestCase extends RSEBaseConnectionTestCase {
sr.deleteHost(h1); sr.deleteHost(h1);
sr.deleteHost(h2); sr.deleteHost(h2);
sr.deleteHost(h3); sr.deleteHost(h3);
// // Firing a refresh event here, after deleting the hosts
// // but before adding the new one, makes the bug
// disappear.
// // Perhaps a correct fix would be that our content
// provider
// // refreshes the view right away by means of a listener,
// // instead of relying on forced manual refresh only.
// sr.fireEvent(new SystemResourceChangeEvent(sr,
// ISystemResourceChangeEvents.EVENT_REFRESH, null));
IHost h4 = sr.createHost("Foo", st, "vxsim1", "localhost", "vxsim1"); IHost h4 = sr.createHost("Foo", st, "vxsim1", "localhost", "vxsim1");
sr.fireEvent(new SystemResourceChangeEvent(sr, ISystemResourceChangeEvents.EVENT_REFRESH, null)); sr.fireEvent(new SystemResourceChangeEvent(sr, ISystemResourceChangeEvents.EVENT_REFRESH, null));
// flushEventQueue(); // will throw exception in main Thread! // flushEventQueue(); // will throw exception in main Thread!