6925977: (file) test/java/nio/file/Path/CheckPermissions.java fails if test.src on read-only file system
authoralanb
Tue, 23 Feb 2010 17:56:55 +0000
changeset 4973 be22f18a1d97
parent 4923 cd2829ef32e2
child 4974 65af4830c5fa
6925977: (file) test/java/nio/file/Path/CheckPermissions.java fails if test.src on read-only file system Reviewed-by: chegar
jdk/test/java/nio/file/Path/CheckPermissions.java
--- 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();