Skip to content

Commit aad4ee9

Browse files
committed
Fixed tests not starting on macs
1 parent ab0041e commit aad4ee9

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

kotlin-eclipse-ui-test/pom.xml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,18 @@
1414
<artifactId>org.jetbrains.kotlin.ui.tests</artifactId>
1515
<packaging>eclipse-test-plugin</packaging>
1616

17+
<properties>
18+
<os-jvm-flags/>
19+
</properties>
20+
1721
<build>
1822
<plugins>
1923
<plugin>
2024
<groupId>org.eclipse.tycho</groupId>
2125
<artifactId>tycho-surefire-plugin</artifactId>
2226
<configuration>
2327
<useUIHarness>true</useUIHarness>
24-
<argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>
28+
<argLine>-Xmx1024m -XX:MaxPermSize=256m ${os-jvm-flags}</argLine>
2529
<dependencies>
2630
<dependency>
2731
<type>eclipse-feature</type>
@@ -63,4 +67,16 @@
6367
</plugin>
6468
</plugins>
6569
</build>
70+
71+
<profiles>
72+
<profile>
73+
<id>macosx-jvm-flags</id>
74+
<activation>
75+
<os><family>mac</family></os>
76+
</activation>
77+
<properties>
78+
<os-jvm-flags>-XstartOnFirstThread</os-jvm-flags>
79+
</properties>
80+
</profile>
81+
</profiles>
6682
</project>

0 commit comments

Comments
 (0)