changed to us File.createTempFile

Conflicts:
	src/test/java/net/openhft/chronicle/map/CHMUseCasesTest.java
This commit is contained in:
Rob Austin
2015-07-25 18:01:17 +03:00
committed by leventov
parent 2b954664fa
commit 0f246f7355
5 changed files with 80 additions and 18 deletions
@@ -41,8 +41,8 @@ public class Builder {
static String WIN_OS = "WINDOWS";
public static File getPersistenceFile() throws IOException {
String TMP = System.getProperty("java.io.tmpdir");
File file = new File(TMP + "/chm-test" + System.nanoTime() + (count++));
final File file = File.createTempFile("chm-test-", "map");
//Not Guaranteed to work on Windows, since OS file-lock takes precedence
if (System.getProperty("os.name").indexOf(WIN_OS) > 0) {