Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2017-01-17 10:33:07 +0000
committerEugene Tarassov2017-01-17 10:33:07 +0000
commita513c2b2136978af828920119b694ceb66e5ef34 (patch)
treea94705e810e4b1c4e58463231c28841057d6776f /plugins
parentedbcb3b55a62cf4df0e2e5a0e659ba7421a036d5 (diff)
downloadorg.eclipse.tcf-a513c2b2136978af828920119b694ceb66e5ef34.tar.gz
org.eclipse.tcf-a513c2b2136978af828920119b694ceb66e5ef34.tar.xz
org.eclipse.tcf-a513c2b2136978af828920119b694ceb66e5ef34.zip
TCF Tests: environment variable to control tests timeout
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/Main.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/Main.java b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/Main.java
index 21d9bbfe5..e72916e6b 100644
--- a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/Main.java
+++ b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/Main.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008, 2013 Wind River Systems, Inc. and others.
+ * Copyright (c) 2008, 2017 Wind River Systems, Inc. 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
@@ -154,9 +154,12 @@ public class Main {
runTestSuite(getPeer(args));
}
});
- Protocol.invokeLater(10 * 60 * 1000, new Runnable() {
+ String to_env = System.getenv().get("TCF_TEST_TIMEOUT");
+ if (to_env == null) to_env = "10";
+ final long to_min = Long.parseLong(to_env);
+ Protocol.invokeLater(to_min * 60 * 1000, new Runnable() {
public void run() {
- System.err.println("Error: timeout - test's not finished in 10 min");
+ System.err.println("Error: timeout - test has not finished in " + to_min + " min");
System.exit(5);
}
});

Back to the top