Need reviewer for 6925977: (file) test/java/nio/file/Path/CheckPermissions.java fails if test.src on read-only file system
Alan Bateman
Alan.Bateman at Sun.COM
Fri Feb 12 07:45:35 PST 2010
Lana has taken over the gatekeeping duties for jdk7/tl and on her first
integration hit a few test failures, one of which was
test/java/nio/file/Path/CheckPermissions.java. The test is using
test.src (the source directory) instead of the current directory (the
scratch directory in the case of jtreg). Our tests shouldn't of course
write to the test source directory. The attached path fixes that.
Thanks,
Alan.
diff -r 784e52734b8d test/java/nio/file/Path/CheckPermissions.java
--- a/test/java/nio/file/Path/CheckPermissions.java Wed Feb 10
17:51:07 2010 -0800
+++ b/test/java/nio/file/Path/CheckPermissions.java Fri Feb 12
15:24:28 2010 +0000
@@ -197,7 +197,7 @@ public class CheckPermissions {
}
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();
More information about the nio-dev
mailing list