Bug 81811 - Ant UI performance tests take much longer on Linux-GTK than Win32
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/performance/OpenLaunchConfigurationDialogTests.java b/ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/performance/OpenLaunchConfigurationDialogTests.java
index f8c96bd..bf5f752 100644
--- a/ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/performance/OpenLaunchConfigurationDialogTests.java
+++ b/ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/performance/OpenLaunchConfigurationDialogTests.java
@@ -12,6 +12,7 @@
 package org.eclipse.ant.tests.ui.performance;
 
 import org.eclipse.ant.internal.ui.model.IAntUIConstants;
+import org.eclipse.ant.tests.ui.editor.performance.EditorTestHelper;
 import org.eclipse.ant.tests.ui.testplugin.AbstractAntUITest;
 import org.eclipse.core.resources.IFile;
 import org.eclipse.core.runtime.IStatus;
@@ -73,8 +74,17 @@
 			dialog.setInitialStatus(status);
 			
 			dialog.open();
+            EditorTestHelper.runEventQueue(dialog.getShell());
 			dialog.close();
         }
 		stopMeasuring();
     }
+
+    /* (non-Javadoc)
+     * @see org.eclipse.test.performance.PerformanceTestCase#setUp()
+     */
+    protected void setUp() throws Exception {
+       super.setUp();
+       EditorTestHelper.runEventQueue();
+    }
 }