summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Barnes <krbarnes>2008-02-05 20:09:00 +0000
committerKevin Barnes <krbarnes>2008-02-05 20:09:00 +0000
commit3d98760a72ffa116dbc77cd4d173c0a1726372cf (patch)
tree55a9f3c48a8e29fd8531d49337106c1df2b522f2
parentfcf0fe040a9f0bc67b292859014e7fc3cd3d1413 (diff)
downloadeclipse.platform.swt-3d98760a72ffa116dbc77cd4d173c0a1726372cf.tar.gz
eclipse.platform.swt-3d98760a72ffa116dbc77cd4d173c0a1726372cf.tar.xz
eclipse.platform.swt-3d98760a72ffa116dbc77cd4d173c0a1726372cf.zip
217854 - [Leopard] Errors logged during GC tests
-rw-r--r--tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_GC.java4
1 files changed, 4 insertions, 0 deletions
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 30af784268..486e7346aa 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
@@ -82,10 +82,12 @@ public void test_ConstructorLorg_eclipse_swt_graphics_Drawable() {
// Direct instantiation results in a NoClassDefFoundError during class
// loading/initialization. Casting seems to be ok.
Object printer = printerClass.newInstance();
+ ((Printer) printer).startJob("Test_org_eclipse_swt_graphics_GC");
GC gc1 = new GC((Printer) printer);
GC gc2 = new GC((Printer) printer);
gc1.dispose();
gc2.dispose();
+ ((Printer) printer).endJob();
((Printer) printer).dispose();
fail("No exception thrown for more than one GC on one printer");
} catch (IllegalArgumentException e) {
@@ -140,10 +142,12 @@ public void test_ConstructorLorg_eclipse_swt_graphics_DrawableI() {
// Direct instantiation results in a NoClassDefFoundError during class
// loading/initialization. Casting seems to be ok.
Object printer = printerClass.newInstance();
+ ((Printer) printer).startJob("Test_org_eclipse_swt_graphics_GC");
GC gc1 = new GC((Printer)printer, SWT.RIGHT_TO_LEFT);
GC gc2 = new GC((Printer)printer, SWT.LEFT_TO_RIGHT);
gc1.dispose();
gc2.dispose();
+ ((Printer) printer).endJob();
((Printer) printer).dispose();
fail("No exception thrown for more than one GC on one printer");
} catch (IllegalArgumentException e) {