From ef86ea2842b1a204834291d9d6665bfcd7b75fbc Mon Sep 17 00:00:00 2001 From: Matthias Baesken Date: Wed, 7 Jun 2023 07:45:01 +0000 Subject: [PATCH] 8283756: (zipfs) ZipFSOutputStreamTest.testOutputStream should only check inflated bytes Backport-of: 0c472c8a4ff01b3bc8fba5df82c24c240586e5c5 --- test/jdk/jdk/nio/zipfs/ZipFSOutputStreamTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/jdk/jdk/nio/zipfs/ZipFSOutputStreamTest.java b/test/jdk/jdk/nio/zipfs/ZipFSOutputStreamTest.java index 77f866e9fdf..8175eec070d 100644 --- a/test/jdk/jdk/nio/zipfs/ZipFSOutputStreamTest.java +++ b/test/jdk/jdk/nio/zipfs/ZipFSOutputStreamTest.java @@ -117,7 +117,7 @@ public void testOutputStream(final Map env) throws Exception { while ((numRead = is.read(buf)) != -1) { totalRead += numRead; // verify the content - Assert.assertEquals(Arrays.mismatch(buf, chunk), -1, + Assert.assertEquals(Arrays.mismatch(buf, 0, numRead, chunk, 0, numRead), -1, "Unexpected content in " + entryPath); } System.out.println("Read entry " + entryPath + " of bytes " + totalRead