summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2018-08-08 09:11:48 -0400
committerStephan Herrmann2018-08-08 09:11:48 -0400
commited40b301670fe4f10129729541a4d5f7c4826efb (patch)
tree64c738bfb48fdd84280adb5b0506eceacbc92a36
parentc3543aa3c1df9a2ee0703d93d66a9d1185d24570 (diff)
downloadorg.eclipse.objectteams-ed40b301670fe4f10129729541a4d5f7c4826efb.tar.gz
org.eclipse.objectteams-ed40b301670fe4f10129729541a4d5f7c4826efb.tar.xz
org.eclipse.objectteams-ed40b301670fe4f10129729541a4d5f7c4826efb.zip
More robustness for test5317_concurrentActivation1()
- try some warm-up before the real test
-rw-r--r--testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/teamactivation/ImplicitTeamActivation.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/teamactivation/ImplicitTeamActivation.java b/testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/teamactivation/ImplicitTeamActivation.java
index 97f86f163..d9f56cf02 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/teamactivation/ImplicitTeamActivation.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/otjld/org/eclipse/objectteams/otdt/tests/otjld/teamactivation/ImplicitTeamActivation.java
@@ -1901,6 +1901,8 @@ public class ImplicitTeamActivation extends AbstractOTJLDTest {
" }\n" +
" }\n" +
" void run() {\n" +
+ " if ( Team5317ca1_2.class == null || Team5317ca1_1.class == null) return;\n" + // warm-up
+ " if ( sleep(1000) ) return;\n" +
" Thread[] threads = new Thread[] {\n" +
" new Thread(new Run5317ca1_1()),\n" +
" new Thread(new Run5317ca1_1()),\n" +