From 6445f94a71aac36f99f878502c728eae0566869c Mon Sep 17 00:00:00 2001 From: danielshaya Date: Wed, 20 May 2015 11:37:08 +0100 Subject: [PATCH] Allow test to run on Windows by using java.io.tmpdir --- src/test/java/net/openhft/chronicle/map/FilePerKeyMapTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/net/openhft/chronicle/map/FilePerKeyMapTest.java b/src/test/java/net/openhft/chronicle/map/FilePerKeyMapTest.java index feff2aa8e..8ec390f60 100644 --- a/src/test/java/net/openhft/chronicle/map/FilePerKeyMapTest.java +++ b/src/test/java/net/openhft/chronicle/map/FilePerKeyMapTest.java @@ -18,7 +18,8 @@ public class FilePerKeyMapTest { @BeforeClass public static void createMap() throws IOException { - map = new FilePerKeyMap("/tmp/filepermaptests"); + String TMP = System.getProperty("java.io.tmpdir"); + map = new FilePerKeyMap(TMP + "/filepermaptests"); //just in case it hasn't been cleared up last time map.clear(); }