mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
bug 388755: test cases differ on windows and unix
This commit is contained in:
parent
05a61b35bf
commit
7660c4881e
1 changed files with 11 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue