Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Keppler2018-12-29 08:46:36 -0500
committerMichael Keppler2019-01-01 08:40:45 -0500
commitf634c72c5f71bddda477e2227c32e3aa1d134e46 (patch)
tree4d1be70341794e9468508793390000830b1ef9a6 /org.eclipse.egit.ui.test/src
parent3e6afe375470bcc1abbf9d38aab6af30e3bda1ed (diff)
downloadegit-f634c72c5f71bddda477e2227c32e3aa1d134e46.tar.gz
egit-f634c72c5f71bddda477e2227c32e3aa1d134e46.tar.xz
egit-f634c72c5f71bddda477e2227c32e3aa1d134e46.zip
Fix path related failing tests on Windows
* DynamicVariablesTest: IPath.toString() uses a fixed separator "/", therefore the calculated variable value cannot be compared with the Windows file separator. * CommitFileRevisionTest: file revisions in commits are resolved using "/", therefore a relative Windows path cannot be located in the git storage. Change-Id: I9be225654fec285ddd1a4059fffac6058547b668 Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
Diffstat (limited to 'org.eclipse.egit.ui.test/src')
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/variables/DynamicVariablesTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/variables/DynamicVariablesTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/variables/DynamicVariablesTest.java
index dc4e08587..c0f1d0724 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/variables/DynamicVariablesTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/variables/DynamicVariablesTest.java
@@ -156,7 +156,8 @@ public class DynamicVariablesTest extends EGitTestCase {
@Test
public void testGitPath() throws CoreException {
- assertVariable(TEST_PROJECT + File.separatorChar + TEST_FILE, "git_repo_relative_path", null);
+ assertVariable(TEST_PROJECT + "/" + TEST_FILE, "git_repo_relative_path",
+ null);
assertVariable(TEST_FILE2, "git_repo_relative_path", TEST_PROJECT2 + "/" + TEST_FILE2);
}

Back to the top