mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 08:46:02 +02:00
Bug 303953 - Deleted linked resource in managed project is still being built.
- Fix test on Windows.
This commit is contained in:
parent
741eb6dd08
commit
b5742a5a4c
1 changed files with 3 additions and 1 deletions
|
@ -51,6 +51,8 @@ import org.eclipse.core.runtime.jobs.Job;
|
||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
public abstract class AbstractBuilderTest extends TestCase {
|
public abstract class AbstractBuilderTest extends TestCase {
|
||||||
|
private static final boolean WINDOWS = java.io.File.separatorChar == '\\';
|
||||||
|
|
||||||
static final String PATH = "builderTests";
|
static final String PATH = "builderTests";
|
||||||
|
|
||||||
private String workspace;
|
private String workspace;
|
||||||
|
@ -136,7 +138,7 @@ public abstract class AbstractBuilderTest extends TestCase {
|
||||||
Collection<IResource> resources = getProjectBuildResources(projectName, cfgName, objs);
|
Collection<IResource> resources = getProjectBuildResources(projectName, cfgName, objs);
|
||||||
IProject project = getWorkspace().getRoot().getProject(projectName);
|
IProject project = getWorkspace().getRoot().getProject(projectName);
|
||||||
IFolder buildDir = project.getFolder(cfgName);
|
IFolder buildDir = project.getFolder(cfgName);
|
||||||
resources.add(buildDir.getFile(projectName));
|
resources.add(buildDir.getFile(projectName + (WINDOWS ? ".exe" : "")));
|
||||||
return resources;
|
return resources;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue