Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mylyn-docs-dev] Trouble executing tests

Hi again,

I found the reason for the failing test - it appears to be locale specific. See bug 389996: CssStyleManagerTest fails on number parsing

Best regards,
Torkild

20. sep. 2012 kl. 11:25 skrev Torkild Ulvøy Resheim <torkildr@xxxxxxxxx>:

Thanks Steffen,

Running "mvn -e clean install" does not create anything in org.eclipse.mylyn.docs/org.eclipse.mylyn.wikitext.tests/target/surefire-reports so it appears that no tests whatsoever has been executed. Running "mvn -e clean install -Posx" does run tests (but I get test failures). So it appears the property works - but the profile is not activated.

I'll try to figure out the test failures.

Best regards,
Torkild


20. sep. 2012 kl. 10:57 skrev Steffen Pingel <steffen.pingel@xxxxxxxxxxx>:

OSX requires a special flag to be passed to the VM. This is defined in a profile in org.eclipse.mylyn/org.eclipse.mylyn-parent/pom.xml:

    <profile>
      <id>osx</id>
      <activation>
        <property>
          <name>java.vendor.url</name>
          <value>http://www.apple.com/</value>
        </property>
      </activation>
      <properties>
        <test.osvmargs>-Dosgi.ws=cocoa -XstartOnFirstThread</test.osvmargs>
      </properties>
    </profile>

Can you check if the profile activation works for you or if we should update the activation property? You can also manually activate the profile by passing "-Posx" to Maven.

Steffen



On Thu, Sep 20, 2012 at 1:39 AM, Torkild Ulvøy Resheim <torkildr@xxxxxxxxx> wrote:
Hi,

Recently I've had trouble building Mylyn Docs using Maven as the tests would not execute. I took another stab at this today and found this stack trace in org.eclipse.mylyn.docs/org.eclipse.mylyn.wikitext.tests/target/work/data/.metadata/.log :

org.eclipse.swt.SWTException: Invalid thread access
        at org.eclipse.swt.SWT.error(SWT.java:4282)
        at org.eclipse.swt.SWT.error(SWT.java:4197)
        at org.eclipse.swt.SWT.error(SWT.java:4168)
        at org.eclipse.swt.widgets.Display.error(Display.java:1065)
        at org.eclipse.swt.widgets.Display.createDisplay(Display.java:822)
        at org.eclipse.swt.widgets.Display.create(Display.java:805)
        at org.eclipse.swt.graphics.Device.<init>(Device.java:130)
        at org.eclipse.swt.widgets.Display.<init>(Display.java:696)
        at org.eclipse.swt.widgets.Display.<init>(Display.java:687)
        at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:716)
        at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
        at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:153)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:95)
        at org.eclipse.tycho.surefire.osgibooter.UITestApplication.runApplication(UITestApplication.java:31)
        at org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplication.run(AbstractUITestApplication.java:114)
        at org.eclipse.tycho.surefire.osgibooter.UITestApplication.start(UITestApplication.java:37)
        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:344)
        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:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        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)

I don't there have been any changes in Mylyn Docs that can cause this, but rather something in SureFire or the build configuration. I'm running on OS X. Any ideas?
--
Torkild Ulvøy Resheim
Consultant / Eclipse Committer / Senior Software Developer
Itema AS - http://itema.no


_______________________________________________
mylyn-docs-dev mailing list
mylyn-docs-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/mylyn-docs-dev




--
Steffen Pingel
Principal Software Engineer, Eclipse Mylyn
Mylyn Tasks Lead
http://tasktop.com
_______________________________________________
mylyn-docs-dev mailing list
mylyn-docs-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/mylyn-docs-dev

-- 
Torkild Ulvøy Resheim
Consultant / Eclipse Committer / Senior Software Developer
Itema AS - http://itema.no


-- 
Torkild Ulvøy Resheim
Consultant / Eclipse Committer / Senior Software Developer
Itema AS - http://itema.no

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Back to the top