Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 331676

Summary: Test failures on Cocoa in N20101201-2000
Product: [Eclipse Project] Platform Reporter: Felipe Heidrich <eclipse.felipe>
Component: SWTAssignee: Scott Kovatch <skovatch>
Status: RESOLVED FIXED QA Contact: Silenio Quarti <Silenio_Quarti>
Severity: normal    
Priority: P3    
Version: 3.7   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

Description Felipe Heidrich CLA 2010-12-02 09:55:14 EST
See

http://download.eclipse.org/eclipse/downloads/drops/N20101201-2000/testresults/html/org.eclipse.swt.tests_macosx.cocoa.x86_5.0.html

A few tests are failing due this exception:

N/A 

java.lang.NullPointerException
at org.eclipse.swt.widgets.Shell.setEnabled(Shell.java:1597)
at org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Shell.test_getEnabled(Test_org_eclipse_swt_widgets_Shell.java:174)
at org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Shell.runTest(Test_org_eclipse_swt_widgets_Shell.java:346)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:416)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:249)
at org.eclipse.test.CoreTestApplication.runTests(CoreTestApplication.java:36)
at org.eclipse.test.CoreTestApplication.run(CoreTestApplication.java:32)
at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
at org.eclipse.core.launcher.Main.main(Main.java:34)
Comment 1 Scott Kovatch CLA 2010-12-02 11:54:12 EST
Dumb mistake on my part. There's no guarantee that there will always be a main window. I should have used [NSWindow isMainWindow] instead.
Comment 2 Scott Kovatch CLA 2010-12-02 12:01:40 EST
Fixed > 20101203. Cocoa tests run 100% clean.
Comment 3 Scott Kovatch CLA 2010-12-03 12:12:38 EST
Forgot to move this to fixed.