Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreutarass2010-07-28 14:24:39 -0400
committereutarass2010-07-28 14:24:39 -0400
commit30819da337326ee654f7ba622d4c5750bd69af77 (patch)
treee2d2770e3bd1c95f5d109728c9c901ee265a80a3
parentafefba65ded9dca4d7740639ce6c75301773f0ac (diff)
downloadorg.eclipse.tcf-30819da337326ee654f7ba622d4c5750bd69af77.tar.gz
org.eclipse.tcf-30819da337326ee654f7ba622d4c5750bd69af77.tar.xz
org.eclipse.tcf-30819da337326ee654f7ba622d4c5750bd69af77.zip
TCF Tests: fixed: file system test creates file names with double slashes
-rw-r--r--plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/tests/TestFileSystem.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/tests/TestFileSystem.java b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/tests/TestFileSystem.java
index 1cb1ffdf1..6777c60f7 100644
--- a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/tests/TestFileSystem.java
+++ b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/tests/TestFileSystem.java
@@ -96,7 +96,9 @@ class TestFileSystem implements ITCFTest, IFileSystem.DoneStat,
if (entries != null && tmp_path == null) {
for (DirEntry e : entries) {
if (e.filename.equals("tmp") || e.filename.equalsIgnoreCase("temp")) {
- tmp_path = root + "/" + e.filename;
+ tmp_path = root;
+ if (!tmp_path.endsWith("/")) tmp_path += "/";
+ tmp_path += e.filename;
break;
}
}

Back to the top