RFR: 8346871: Improve robustness of java/util/zip/EntryCount64k.java test

Jaikiran Pai jpai at openjdk.org
Sun Dec 29 14:56:13 UTC 2024


Can I please get a review of this test-only change which improves the `test/jdk/java/util/zip/EntryCount64k.java` test code to allow for it to pass when the JVM logs any warning when launching an application through `java -jar ...`?

The proposed change merely relaxes a check to allow for additional content to be present in the launched process' stdout. This doesn't change any of the original goals of the test.

The test failure was reproduced (on Linux) by launching the test through `jtreg` with `-javaoption:"-XX:+UseNUMA"`. With the proposed change in this PR, the test now passes when launched in that manner (and even without that option).

-------------

Commit messages:
 - 8346871: Improve robustness of java/util/zip/EntryCount64k.java test

Changes: https://git.openjdk.org/jdk/pull/22892/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22892&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8346871
  Stats: 9 lines in 1 file changed: 7 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/22892.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22892/head:pull/22892

PR: https://git.openjdk.org/jdk/pull/22892


More information about the core-libs-dev mailing list