Speeding up codegen tests

This commit is contained in:
Alex Tkachman
2012-02-07 19:10:16 +02:00
parent 8ef778c18e
commit bb3ca16203
4 changed files with 36 additions and 66 deletions
@@ -170,9 +170,10 @@ public class JetTestUtils {
deleteOnShutdown(answer);
return answer;
}
public static File tmpDir(String name) throws IOException {
File answer = FileUtil.createTempDirectory(name, "");
// we should use this form. otherwise directory will be deleted on each test
File answer = FileUtil.createTempDirectory(new File(System.getProperty("java.io.tmpdir")), name, "");
deleteOnShutdown(answer);
return answer;
}