[
https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12924296#action_12924296
]
Delos Dai commented on GERONIMODEVTOOLS-677:
--------------------------------------------
If the GUI is not the same in various OS, I suggest to extract OS specific test
cases to a single test plugin. Then, every time only run the test cases per OS.
> Testsuite not working on Mac cocoa
> ----------------------------------
>
> Key: GERONIMODEVTOOLS-677
> URL:
> https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-677
> Project: Geronimo-Devtools
> Issue Type: Bug
> Components: eclipse-plugin
> Environment: Mac OS X
> Reporter: Ted Kirby
> Assignee: Delos Dai
>
> It looks like there is a fatal cocoa restriction currently blocking the
> testsuite from running on Mac OS X, based on this message:
> "***WARNING: Display must be created on main thread due to Cocoa
> restrictions."
> details:
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Geronimo Eclipse Plugin :: Testsuite :: Launcher
> [INFO] task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> ...
> [INFO] [antrun:run {execution: run-testsuite}]
> [INFO] Executing tasks
> init:
> Please install Aries tools manually for eclipse under
> testsuite/launcher/eclipse,
> Free Aries tools download URL is
> http://www.ibm.com/developerworks/rational/downloads/10/rationaldevtoolsforosgiapplications.html
> Press Enter to continue...
>
> mac:
> [echo] Launching Equinox with -Dos=macosx -Dws=cocoa
> [java] Buildfile: testsuite.xml
> [java]
> [java] all:
> [java]
> [java] testsuite.v30:
> [java]
> [java] junit:
> [java]
> [java] init:
> [java]
> [java] suite:
> [java] [delete] Deleting directory
> /Users/tedkirby/svn/gdvtls/eclipse-plugin/trunk/testsuite/launcher/eclipse/eclipse/jdt_folder
> [java] [mkdir] Created dir:
> /Users/tedkirby/svn/gdvtls/eclipse-plugin/trunk/testsuite/launcher/eclipse/eclipse/jdt_folder/src
> [java] [copy] Copying 13 files to
> /Users/tedkirby/svn/gdvtls/eclipse-plugin/trunk/testsuite/launcher/eclipse/eclipse/jdt_folder/src
> [java]
> [java] init:
> [java]
> [java] ui-test:
> [java]
> [java] java-test:
> [java] [echo] Running
> org.apache.geronimo.testsuite.v30.ui.aries.NewOSGiBundleTest. Result file:
> /Users/tedkirby/svn/gdvtls/eclipse-plugin/trunk/testsuite/launcher/results/junit/org.apache.geronimo.testsuite.v30.ui.aries.NewOSGiBundleTest.xml.
> [java]
> [java] BUILD FAILED
> [java]
> /Users/tedkirby/svn/gdvtls/eclipse-plugin/trunk/testsuite/launcher/testsuite.xml:72:
> The following error occurred while executing this line:
> [java]
> /Users/tedkirby/svn/gdvtls/eclipse-plugin/trunk/testsuite/launcher/testsuite.xml:56:
> The following error occurred while executing this line:
> [java]
> /Users/tedkirby/svn/gdvtls/eclipse-plugin/trunk/testsuite/launcher/testsuite.xml:38:
> The following error occurred while executing this line:
> [java]
> /Users/tedkirby/svn/gdvtls/eclipse-plugin/trunk/testsuite/launcher/testsuite.xml:46:
> The following error occurred while executing this line:
> [java]
> /Users/tedkirby/svn/gdvtls/eclipse-plugin/trunk/testsuite/launcher/eclipse/eclipse/plugins/org.apache.geronimo.testsuite.v30-3.0.0/test.xml:94:
> The following error occurred while executing this line:
> [java]
> /Users/tedkirby/svn/gdvtls/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.testsuite.common/library.xml:74:
> The following error occurred while executing this line:
> [java]
> /Users/tedkirby/svn/gdvtls/eclipse-plugin/trunk/testsuite/plugins/org.apache.geronimo.testsuite.common/library.xml:89:
> Java returned: 13
> [java]
> [java] Total time: 19 seconds
> [java] An error has occurred. See the log file
> [java]
> /Users/tedkirby/svn/gdvtls/eclipse-plugin/trunk/testsuite/launcher/workspace/.metadata/.log.
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] An Ant BuildException has occured: The following error occurred while
> executing this line:
> /Users/tedkirby/svn/gdvtls/eclipse-plugin/trunk/testsuite/launcher/build.xml:99:
> The following error occurred while executing this line:
> /Users/tedkirby/svn/gdvtls/eclipse-plugin/trunk/testsuite/launcher/build.xml:83:
> Java returned: 13
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 9 minutes 5 seconds
> [INFO] Finished at: Mon Oct 18 11:30:49 EDT 2010
> [INFO] Final Memory: 427M/507M
> [INFO]
> ------------------------------------------------------------------------
> from
> testsuite/launcher/results/junit/org.apache.geronimo.testsuite.v30.ui.aries.NewOSGiBundleTest.txt
> :
> ***WARNING: Display must be created on main thread due to Cocoa restrictions.
> !SESSION 2010-10-18 11:30:29.172
> -----------------------------------------------
> eclipse.buildId=M20100909-0800
> java.version=1.6.0_20
> java.vendor=Apple Inc.
> BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
> Framework arguments: -application org.eclipse.test.uitestapplication
> formatter=org.apache.tools.ant.taskdefs.optional.junit.X
> MLJUnitResultFormatter,/Users/tedkirby/svn/gdvtls/eclipse-plugin/trunk/testsuite/launcher/eclipse/eclipse/org.apache.geronimo.
> testsuite.v30.ui.aries.NewOSGiBundleTest.xml -testPluginName
> org.apache.geronimo.testsuite.v30 -className org.apache.geronimo.
> testsuite.v30.ui.aries.NewOSGiBundleTest
> Command-line arguments: -application org.eclipse.test.uitestapplication
> -data /Users/tedkirby/svn/gdvtls/eclipse-plugin/trunk
> /testsuite/launcher/eclipse/eclipse/jdt_folder
> formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,
> /Users/tedkirby/svn/gdvtls/eclipse-plugin/trunk/testsuite/launcher/eclipse/eclipse/org.apache.geronimo.testsuite.v30.ui.aries.
> NewOSGiBundleTest.xml -testPluginName org.apache.geronimo.testsuite.v30
> -className org.apache.geronimo.testsuite.v30.ui.aries.
> NewOSGiBundleTest -os macosx -ws cocoa -arch x86_64 -consolelog
> !ENTRY org.eclipse.osgi 4 0 2010-10-18 11:30:44.403
> !MESSAGE Application error
> !STACK 1
> org.eclipse.swt.SWTException: Invalid thread access
> at org.eclipse.swt.SWT.error(SWT.java:4083)
> at org.eclipse.swt.SWT.error(SWT.java:3998)
> at org.eclipse.swt.SWT.error(SWT.java:3969)
> at org.eclipse.swt.widgets.Display.error(Display.java:1027)
> at org.eclipse.swt.widgets.Display.createDisplay(Display.java:794)
> at org.eclipse.swt.widgets.Display.create(Display.java:777)
> at org.eclipse.swt.graphics.Device.<init>(Device.java:130)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:668)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:659)
> at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:708)
> at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:145)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:88)
> at
> org.eclipse.test.UITestApplication.runApplication(UITestApplication.java:138)
> at org.eclipse.test.UITestApplication.run(UITestApplication.java:60)
> at
> org.eclipse.test.UITestApplication.start(UITestApplication.java:210)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> 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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
> at org.eclipse.core.launcher.Main.main(Main.java:34)
> An error has occurred. See the log file
> /Users/tedkirby/svn/gdvtls/eclipse-plugin/trunk/testsuite/launcher/eclipse/eclipse/jdt_folder/.metadata/.log.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.