jdk/test/java/nio/file/attribute/AclFileAttributeView/Basic.java
changeset 3065 452aaa2899fc
parent 2057 3acf8e5e2ca0
child 4050 5e13972159e3
--- a/jdk/test/java/nio/file/attribute/AclFileAttributeView/Basic.java	Fri Jun 26 18:39:45 2009 -0700
+++ b/jdk/test/java/nio/file/attribute/AclFileAttributeView/Basic.java	Sat Jun 27 21:46:53 2009 +0100
@@ -22,7 +22,7 @@
  */
 
 /* @test
- * @bug 4313887
+ * @bug 4313887 6838333
  * @summary Unit test for java.nio.file.attribute.AclFileAttribueView
  * @library ../..
  */
@@ -147,7 +147,10 @@
     }
 
     public static void main(String[] args) throws IOException {
-        Path dir = TestUtil.createTemporaryDirectory();
+        // use work directory rather than system temporary directory to
+        // improve chances that ACLs are supported
+        Path dir = Paths.get("./work" + new Random().nextInt())
+            .createDirectory();
         try {
             if (!dir.getFileStore().supportsFileAttributeView("acl")) {
                 System.out.println("ACLs not supported - test skipped!");