test/jdk/nio/zipfs/PathOps.java

Print this page

        

@@ -25,11 +25,14 @@
 import java.net.*;
 import java.util.*;
 import java.io.IOException;
 
 /**
- * Tests path operations for zip provider.
+ *
+ * @test
+ * @bug 8038500
+ * @summary Tests path operations for zip provider.
  */
 
 public class PathOps {
 
     static final java.io.PrintStream out = System.out;

@@ -445,12 +448,12 @@
         }
 
     }
 
     public static void main(String[] args) throws Throwable {
-
-        Path zipfile = Paths.get(args[0]);
+        Path zipfile = Paths.get(System.getProperty("test.jdk"),
+                                 "jre/lib/ext/zipfs.jar");
         fs = FileSystems.newFileSystem(zipfile, null);
         npes();
         doPathOpTests();
         fs.close();
     }