1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 303953 - Deleted linked resource in managed project is still being built.

- Fix test on Windows.
This commit is contained in:
James Blackburn 2011-02-16 18:05:39 +00:00
parent 741eb6dd08
commit b5742a5a4c

View file

@ -51,6 +51,8 @@ import org.eclipse.core.runtime.jobs.Job;
* </ul>
*/
public abstract class AbstractBuilderTest extends TestCase {
private static final boolean WINDOWS = java.io.File.separatorChar == '\\';
static final String PATH = "builderTests";
private String workspace;
@ -136,7 +138,7 @@ public abstract class AbstractBuilderTest extends TestCase {
Collection<IResource> resources = getProjectBuildResources(projectName, cfgName, objs);
IProject project = getWorkspace().getRoot().getProject(projectName);
IFolder buildDir = project.getFolder(cfgName);
resources.add(buildDir.getFile(projectName));
resources.add(buildDir.getFile(projectName + (WINDOWS ? ".exe" : "")));
return resources;
}