Skip to main content
summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAndrew Gvozdev2009-07-20 16:04:42 -0400
committerAndrew Gvozdev2009-07-20 16:04:42 -0400
commitdc8459d3c58e7c9dac948d5653ae2c4afbb43924 (patch)
tree93411a5bff717f613688c816eef40ff7fc248d52 /core
parent1c3fa59e415cb1e6fb48069e0e236b015a22484f (diff)
downloadorg.eclipse.cdt-dc8459d3c58e7c9dac948d5653ae2c4afbb43924.tar.gz
org.eclipse.cdt-dc8459d3c58e7c9dac948d5653ae2c4afbb43924.tar.xz
org.eclipse.cdt-dc8459d3c58e7c9dac948d5653ae2c4afbb43924.zip
bug 263977: Test case fixed for Unix systems.
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.core.tests/misc/org/eclipse/cdt/core/internal/errorparsers/tests/ErrorParserFileMatchingTest.java17
1 files changed, 14 insertions, 3 deletions
diff --git a/core/org.eclipse.cdt.core.tests/misc/org/eclipse/cdt/core/internal/errorparsers/tests/ErrorParserFileMatchingTest.java b/core/org.eclipse.cdt.core.tests/misc/org/eclipse/cdt/core/internal/errorparsers/tests/ErrorParserFileMatchingTest.java
index b38170bb32..4c1c361a5e 100644
--- a/core/org.eclipse.cdt.core.tests/misc/org/eclipse/cdt/core/internal/errorparsers/tests/ErrorParserFileMatchingTest.java
+++ b/core/org.eclipse.cdt.core.tests/misc/org/eclipse/cdt/core/internal/errorparsers/tests/ErrorParserFileMatchingTest.java
@@ -1286,17 +1286,28 @@ public class ErrorParserFileMatchingTest extends TestCase {
* @throws Exception...
*/
public void testWindowsPathOnLinux_Bug263977() throws Exception {
+ // This test is valid on Unix platforms only
+ boolean isUnix = Platform.getOS().equals(Platform.OS_LINUX)
+ || Platform.getOS().equals(Platform.OS_AIX)
+ || Platform.getOS().equals(Platform.OS_SOLARIS)
+ || Platform.getOS().equals(Platform.OS_HPUX)
+ || Platform.getOS().equals(Platform.OS_QNX)
+ || Platform.getOS().equals(Platform.OS_MACOSX);
+ if (!isUnix) {
+ return;
+ }
+
String fileName = "testWindowsPathOnLinux_Bug263977.c";
- ResourceHelper.createFolder(fProject, "Folder/Subfolder");
- ResourceHelper.createFile(fProject, "Folder/Subfolder/"+fileName);
+ ResourceHelper.createFolder(fProject, "w:/Folder/Subfolder");
+ ResourceHelper.createFile(fProject, "w:/Folder/Subfolder/"+fileName);
// Note that main intention of this test is to run on *Linux*, see bug 263977
parseOutput("W:\\Folder\\Subfolder\\"+fileName+":1:error");
assertEquals(1, errorList.size());
ProblemMarkerInfo problemMarkerInfo = errorList.get(0);
- assertEquals("L/FindMatchingFilesTest/Folder/Subfolder/"+fileName,problemMarkerInfo.file.toString());
+ assertEquals("L/FindMatchingFilesTest/w:/Folder/Subfolder/"+fileName,problemMarkerInfo.file.toString());
assertEquals("error",problemMarkerInfo.description);
}

Back to the top