--- a/jdk/test/java/util/zip/ZipFile/FinalizeZipFile.java Fri Oct 10 21:28:35 2014 +0400
+++ b/jdk/test/java/util/zip/ZipFile/FinalizeZipFile.java Sat Oct 11 13:24:23 2014 +0100
@@ -51,12 +51,11 @@
private static void makeGarbage() throws Throwable {
final Random rnd = new Random();
- final String javaHome = System.getProperty("java.home");
// Create some ZipFiles.
- // Find some .jar files in JDK's lib directory.
- final File lib = new File(javaHome, "lib");
- check(lib.isDirectory());
- final File[] jars = lib.listFiles(
+ // Find some .jar files in test directory.
+ final File testdir = new File(System.getProperty("test.src", "."));
+ check(testdir.isDirectory());
+ final File[] jars = testdir.listFiles(
new FilenameFilter() {
public boolean accept(File dir, String name) {
return name.endsWith(".jar");}});