Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gvozdev2012-09-06 03:35:23 +0000
committerAndrew Gvozdev2012-09-06 03:35:23 +0000
commit7660c4881e765b1f6dc5a658f02ef79e61fc0b83 (patch)
treef2fda068dc6e10d7d107011c88c5b0015b805121 /core/org.eclipse.cdt.core.tests/misc
parent05a61b35bf8e306af6e8acf3940ebc855235c45a (diff)
downloadorg.eclipse.cdt-7660c4881e765b1f6dc5a658f02ef79e61fc0b83.tar.gz
org.eclipse.cdt-7660c4881e765b1f6dc5a658f02ef79e61fc0b83.tar.xz
org.eclipse.cdt-7660c4881e765b1f6dc5a658f02ef79e61fc0b83.zip
bug 388755: test cases differ on windows and unix
Diffstat (limited to 'core/org.eclipse.cdt.core.tests/misc')
-rw-r--r--core/org.eclipse.cdt.core.tests/misc/org/eclipse/cdt/core/internal/efsextension/tests/EFSExtensionTests.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core.tests/misc/org/eclipse/cdt/core/internal/efsextension/tests/EFSExtensionTests.java b/core/org.eclipse.cdt.core.tests/misc/org/eclipse/cdt/core/internal/efsextension/tests/EFSExtensionTests.java
index 42cfc668cf..b3b565633e 100644
--- a/core/org.eclipse.cdt.core.tests/misc/org/eclipse/cdt/core/internal/efsextension/tests/EFSExtensionTests.java
+++ b/core/org.eclipse.cdt.core.tests/misc/org/eclipse/cdt/core/internal/efsextension/tests/EFSExtensionTests.java
@@ -20,6 +20,7 @@ import junit.framework.TestSuite;
import org.eclipse.cdt.utils.EFSExtensionManager;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.Platform;
/**
* Tests the EFSExtensionManager and EFSExtensionProvider classes, as well as the EFSExtensionProvider extension point.
@@ -235,7 +236,11 @@ public class EFSExtensionTests extends TestCase {
String path = EFSExtensionManager.getDefault().getMappedPath(originalURI);
- assertEquals(path, "c:/foo");
+ if (Platform.getOS().equals(Platform.WS_WIN32)) {
+ assertEquals(path, "c:/foo");
+ } else {
+ assertEquals(path, "/c:/foo");
+ }
}
public void testGetPathFromURI() {
@@ -248,7 +253,11 @@ public class EFSExtensionTests extends TestCase {
String path = EFSExtensionManager.getDefault().getMappedPath(originalURI);
- assertEquals(path, "c:/foo");
+ if (Platform.getOS().equals(Platform.WS_WIN32)) {
+ assertEquals(path, "c:/foo");
+ } else {
+ assertEquals(path, "/c:/foo");
+ }
}
public void testExtension() {

Back to the top