--- old/test/tools/jmod/JmodTest.java 2017-01-12 21:02:40.000000000 -0800 +++ new/test/tools/jmod/JmodTest.java 2017-01-12 21:02:39.000000000 -0800 @@ -585,7 +585,8 @@ // Ensure that there are no problems if existing Path jmod = MODS_DIR.resolve("testTmpFileAlreadyExists.jmod"); - Path tmp = MODS_DIR.resolve("testTmpFileAlreadyExists.jmod.tmp"); + Path tmpdir = Paths.get(System.getProperty("java.io.tmpdir")); + Path tmp = tmpdir.resolve("testTmpFileAlreadyExists.jmod.tmp"); FileUtils.deleteFileIfExistsWithRetry(jmod); FileUtils.deleteFileIfExistsWithRetry(tmp); Files.createFile(tmp);