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:
parent
160ed47ae1
commit
586f16b958
1 changed files with 11 additions and 2 deletions
|
@ -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!
|
||||||
|
|
Loading…
Add table
Reference in a new issue