Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2018-08-22 19:24:58 +0000
committerEugene Tarassov2018-08-22 19:51:11 +0000
commit3ed69ee3c25ba7b0fcdd6331916f620d3cc7df29 (patch)
tree3f69e5e3c5e81c21b717797aab1a769d51a78bce /plugins/org.eclipse.tcf.debug
parent618694e83ee107c878b5a244b2c6225dcf563860 (diff)
downloadorg.eclipse.tcf-3ed69ee3c25ba7b0fcdd6331916f620d3cc7df29.tar.gz
org.eclipse.tcf-3ed69ee3c25ba7b0fcdd6331916f620d3cc7df29.tar.xz
org.eclipse.tcf-3ed69ee3c25ba7b0fcdd6331916f620d3cc7df29.zip
TCF Core: added support for TCF over HTTP
Diffstat (limited to 'plugins/org.eclipse.tcf.debug')
-rw-r--r--plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestEcho.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestEcho.java b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestEcho.java
index 2d88b09b3..4e873a7cf 100644
--- a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestEcho.java
+++ b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestEcho.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008, 2014 Wind River Systems, Inc. and others.
+ * Copyright (c) 2008-2018 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
@@ -75,7 +75,13 @@ class TestEcho implements ITCFTest, IDiagnostics.DoneEcho {
test_suite.done(this, error);
}
else if (!s.equals(b)) {
- test_suite.done(this, new Exception("Echo test failed: " + s + " != " + b));
+ int i = 0;
+ while (i < s.length() && i < b.length() && s.charAt(i) == b.charAt(i)) i++;
+ int cx = i < s.length() ? s.charAt(i) : '\0';
+ int cy = i < b.length() ? b.charAt(i) : '\0';
+ test_suite.done(this, new Exception("Echo test failed, offset " + i +
+ ", 0x" + Integer.toHexString(cx) + " != 0x" + Integer.toHexString(cy) +
+ ":\n" + s + "\n" + b));
}
else if (count < 0x400) {
sendMessage();

Back to the top