Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreutarass2010-08-03 21:06:41 -0400
committereutarass2010-08-03 21:06:41 -0400
commita785a16e593b27c11814883975f1aca1e5df4e91 (patch)
tree2b219aa9daea0355bf6da118f0f369638b1b0efe /plugins/org.eclipse.tm.tcf.debug
parent4f20fefbe6931807b7d6e20111364f5e8b0e7185 (diff)
downloadorg.eclipse.tcf-a785a16e593b27c11814883975f1aca1e5df4e91.tar.gz
org.eclipse.tcf-a785a16e593b27c11814883975f1aca1e5df4e91.tar.xz
org.eclipse.tcf-a785a16e593b27c11814883975f1aca1e5df4e91.zip
Changed command line version of TCF test suite to exit with error if test don't finish in 10 minutes
Diffstat (limited to 'plugins/org.eclipse.tm.tcf.debug')
-rw-r--r--plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/tests/Main.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/tests/Main.java b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/tests/Main.java
index ddbe466af..0d5c22934 100644
--- a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/tests/Main.java
+++ b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/tests/Main.java
@@ -158,5 +158,11 @@ public class Main {
runTestSuite(getPeer(args));
}
});
+ Protocol.invokeLater(10 * 60 * 1000, new Runnable() {
+ public void run() {
+ System.err.println("Error: timeout - test's not finished in 10 min");
+ System.exit(5);
+ }
+ });
}
}

Back to the top