diff --git a/test/jdk/java/util/jar/JarFile/mrjar/TestVersionedStream.java b/test/jdk/java/util/jar/JarFile/mrjar/TestVersionedStream.java index 09d683cef2b..6c817e2fcac 100644 --- a/test/jdk/java/util/jar/JarFile/mrjar/TestVersionedStream.java +++ b/test/jdk/java/util/jar/JarFile/mrjar/TestVersionedStream.java @@ -21,6 +21,12 @@ * questions. */ +/* + * =========================================================================== + * (c) Copyright IBM Corp. 2023, 2023 All Rights Reserved + * =========================================================================== + */ + /* * @test * @bug 8163798 8189611 @@ -104,7 +110,7 @@ public TestVersionedStream() throws IOException { @AfterClass public void close() throws IOException { Files.walk(userdir, 1) - .filter(p -> !p.equals(userdir)) + .filter(p -> !p.equals(userdir) && !p.getFileName().toString().startsWith("verbosegc")) .forEach(p -> { try { if (Files.isDirectory(p)) {