diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_GC.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_GC.java index a1a8a6d7f5..7b0233fad9 100644 --- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_GC.java +++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_GC.java @@ -279,6 +279,8 @@ public boolean isAutoScalable() { }); shell.open(); + while (display.readAndDispatch()) { + } Image target = new Image(display, canvasWidth, canvasHeight); GC gcCopy = new GC(canvas); gcCopy.copyArea(target, 0, 0);