Fix SWTBot keyboard failure on headless Mac
authorMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Thu, 3 Sep 2015 05:16:38 +0000 (01:16 -0400)
committerMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Mon, 23 Nov 2015 21:27:04 +0000 (16:27 -0500)
Running tests that use the keyboard (AWT) on headless Mac fails with
java.awt.AWTException: headless environment
Setting java.awt.headless=false fixes this.

Change-Id: Ia693d1900a2bd8cfdeaf6816366800a872a45bad
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/55160
Reviewed-by: Hudson CI
pom.xml

diff --git a/pom.xml b/pom.xml
index ebeeac802386d582cfc5fe0105119a8f13d78fc0..34f4e05c532b9d97e3519eb2616f2e154569477d 100644 (file)
--- a/pom.xml
+++ b/pom.xml
       </os>
     </activation>
     <properties>
-      <base.ui.test.vmargs>${base.test.vmargs} -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts</base.ui.test.vmargs>
+      <base.ui.test.vmargs>${base.test.vmargs} -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts -Djava.awt.headless=false</base.ui.test.vmargs>
     </properties>
   </profile>
   <profile>
This page took 0.025293 seconds and 5 git commands to generate.