6925977: (file) test/java/nio/file/Path/CheckPermissions.java fails if test.src on read-only file system
Reviewed-by: chegar
--- a/jdk/test/java/nio/file/Path/CheckPermissions.java Tue Feb 23 17:08:23 2010 +0000
+++ b/jdk/test/java/nio/file/Path/CheckPermissions.java Tue Feb 23 17:56:55 2010 +0000
@@ -197,7 +197,7 @@
}
public static void main(String[] args) throws IOException {
- Path dir = Paths.get(System.getProperty("test.src", "."));
+ Path dir = Paths.get(System.getProperty("test.dir", "."));
Path file = dir.resolve("file1234").createFile();
try {
LoggingSecurityManager.install();