Bug 515274: JDT Core test freezes in Gerrit Hudson job
only add tracing in tycho-surefire test runs
Change-Id: I43d5fe63eef484a93924ddc94c96089d7c308324
diff --git a/org.eclipse.jdt.core.tests.model/pom.xml b/org.eclipse.jdt.core.tests.model/pom.xml
index 142b05b..6f5139f 100644
--- a/org.eclipse.jdt.core.tests.model/pom.xml
+++ b/org.eclipse.jdt.core.tests.model/pom.xml
@@ -37,8 +37,8 @@
<configuration>
<argLine>-Djdt.default.test.compliance=1.8</argLine>
<includes>
- <include>org/eclipse/jdt/core/tests/model/AllJavaModelTests.class</include>
- <include>org/eclipse/jdt/core/tests/dom/RunAllTests.class</include>
+ <include>org/eclipse/jdt/core/tests/model/AllJavaModelTestsTracing.class</include>
+ <include>org/eclipse/jdt/core/tests/dom/RunAllTestsTracing.class</include>
<include>org/eclipse/jdt/core/tests/RunFormatterTests.class</include>
</includes>
</configuration>
diff --git a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/RunAllTestsTracing.java b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/RunAllTestsTracing.java
new file mode 100644
index 0000000..2aa6412
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/RunAllTestsTracing.java
@@ -0,0 +1,22 @@
+/*******************************************************************************
+ * Copyright (c) 2017 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.jdt.core.tests.dom;
+
+import org.eclipse.test.TracingSuite;
+import org.eclipse.test.TracingSuite.TracingOptions;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite.SuiteClasses;
+
+@RunWith(TracingSuite.class)
+@SuiteClasses(RunAllTests.class)
+@TracingOptions(stackDumpTimeoutSeconds = 60)
+public class RunAllTestsTracing {
+}
diff --git a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/AllJavaModelTestsTracing.java b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/AllJavaModelTestsTracing.java
new file mode 100644
index 0000000..8f3bfda
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/AllJavaModelTestsTracing.java
@@ -0,0 +1,22 @@
+/*******************************************************************************
+ * Copyright (c) 2017 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.jdt.core.tests.model;
+
+import org.eclipse.test.TracingSuite;
+import org.eclipse.test.TracingSuite.TracingOptions;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite.SuiteClasses;
+
+@RunWith(TracingSuite.class)
+@SuiteClasses(AllJavaModelTests.class)
+@TracingOptions(stackDumpTimeoutSeconds = 60)
+public class AllJavaModelTestsTracing {
+}