diff options
-rw-r--r-- | plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestExpressions.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestExpressions.java b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestExpressions.java index f43a7c00e..9610b1993 100644 --- a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestExpressions.java +++ b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestExpressions.java @@ -187,6 +187,8 @@ class TestExpressions implements ITCFTest, RunControl.DiagnosticTestDone, "$printf(\"%u\",func2_local3.f_enum)", "3", "$printf(\"%g\",func2_local3.f_float)", "3.14", "$printf(\"%g\",func2_local3.f_double)", "2.71", + "0 && $printf(\"fail\")", "", + "1 && $printf(\"OK\")", "OK", }; @SuppressWarnings("unused") @@ -833,7 +835,7 @@ class TestExpressions implements ITCFTest, RunControl.DiagnosticTestDone, return; } for (byte b : data) { - while (test_dprintfs[test_cnt * 2 + 1] == null) test_cnt++; + while (test_dprintfs[test_cnt * 2 + 1] == null || test_dprintfs[test_cnt * 2 + 1].length() == 0) test_cnt++; char ch = test_dprintfs[test_cnt * 2 + 1].charAt(char_cnt++); if (b != ch) { exit(new Exception("Invalid output of $printf: " + test_dprintfs[test_cnt * 2 + 1] + " -> " + new String(data))); |