Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreutarass2010-06-21 19:53:36 +0000
committereutarass2010-06-21 19:53:36 +0000
commit471e84fee55f17ae43b1eb3cb1f1644a6ee37056 (patch)
tree11b14b67596f223e1a56b9efa25625c08b945174
parent53f91e1ad0cea622e8aa8853365b2203b5ee2245 (diff)
downloadorg.eclipse.tcf-471e84fee55f17ae43b1eb3cb1f1644a6ee37056.tar.gz
org.eclipse.tcf-471e84fee55f17ae43b1eb3cb1f1644a6ee37056.tar.xz
org.eclipse.tcf-471e84fee55f17ae43b1eb3cb1f1644a6ee37056.zip
TCF Debugger: diagnostics test fixed: the test can get into infinite loop if for some commands agent respond with no error and no data
-rw-r--r--plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/tests/TestExpressions.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/TestExpressions.java b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/tests/TestExpressions.java
index e638b7106..c5ad02ab5 100644
--- a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/tests/TestExpressions.java
+++ b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/tests/TestExpressions.java
@@ -189,6 +189,9 @@ class TestExpressions implements ITCFTest,
if (error != null) {
exit(error);
}
+ else if (id == null) {
+ exit(new Exception("Test context ID must not be null"));
+ }
else {
test_ctx_id = id;
runTest();
@@ -280,6 +283,9 @@ class TestExpressions implements ITCFTest,
if (error != null) {
exit(error);
}
+ else if (symbol == null) {
+ exit(new Exception("Symbol must not be null: tcf_test_func3"));
+ }
else {
sym_func3 = symbol;
runTest();

Back to the top