diff -r bf7dbec89c47 -r bfb3ab3f70f2 project/com.nokia.carbide.cpp.epoc.engine.tests/src/com/nokia/carbide/cpp/epoc/engine/tests/BaseTest.java --- a/project/com.nokia.carbide.cpp.epoc.engine.tests/src/com/nokia/carbide/cpp/epoc/engine/tests/BaseTest.java Wed Dec 02 14:40:51 2009 -0600 +++ b/project/com.nokia.carbide.cpp.epoc.engine.tests/src/com/nokia/carbide/cpp/epoc/engine/tests/BaseTest.java Wed Dec 02 15:02:05 2009 -0600 @@ -39,6 +39,7 @@ import com.nokia.carbide.internal.cpp.epoc.engine.preprocessor.ASTPreprocessor; import com.nokia.carbide.internal.cpp.epoc.engine.preprocessor.IConditionalBlock; import com.nokia.cpp.internal.api.utils.core.FileUtils; +import com.nokia.cpp.internal.api.utils.core.HostOS; import com.nokia.cpp.internal.api.utils.core.IMessage; import com.nokia.cpp.internal.api.utils.core.TextUtils; @@ -153,6 +154,18 @@ private HashMap refMap; protected IPath modelPath; + protected String getTokenAbsolutePath() { + return HostOS.IS_WIN32 + ? "c:\\tests\\" : "/tmp/"; + } + + protected String toDosPath(IPath path) { + return path.toPortableString().replaceAll("/", "\\\\"); + } + protected String toDosPath(String path) { + return path.replaceAll("/", "\\\\"); + } + /* (non-Javadoc) * @see junit.framework.TestCase#setUp() */ @@ -160,7 +173,7 @@ protected void setUp() throws Exception { super.setUp(); if (projectPath == null) - projectPath = new Path("c:/tests/project"); + projectPath = new Path(getTokenAbsolutePath()).append("project"); parserConfig = new ParserConfigurationBase(projectPath) { @Override