diff --git a/core/org.eclipse.cdt.core.tests/suite/org/eclipse/cdt/core/testplugin/CProjectHelper.java b/core/org.eclipse.cdt.core.tests/suite/org/eclipse/cdt/core/testplugin/CProjectHelper.java index 080595c0044..b1f087b304d 100644 --- a/core/org.eclipse.cdt.core.tests/suite/org/eclipse/cdt/core/testplugin/CProjectHelper.java +++ b/core/org.eclipse.cdt.core.tests/suite/org/eclipse/cdt/core/testplugin/CProjectHelper.java @@ -427,19 +427,18 @@ public class CProjectHelper { } /** - * Returns the location of a newly created directory in the systems temp. area. - * @return the location of a newly created directory in the systems temp. area + * @return the location of a newly created directory in temporary area. + * Note that cleanup should be done with {@link ResourceHelper#cleanUp()}. * @throws IOException + * @throws CoreException */ - public static File freshDir() throws IOException { - File tempDir = new File(System.getProperty("java.io.tmpdir")).getCanonicalFile(); - for(int i=0; i