RFR: 8372242: Gtest LogTagSet.defaults should run in OTHER VM

Axel Boldt-Christmas aboldtch at openjdk.org
Thu Nov 20 09:13:25 UTC 2025


LogTagSet.defaults checks some of the default `LogTagSet` properties and assumes a fresh VM. This test will fail if the other `LogTagSet` have run first.

As this test is ment to test the defaults of the LogTagSet, it should be ran in an OTHER VM. 

We might still have problems if logging flags are given to the GTestLauncher. But all our jtreg GTest runners are `@requires vm.flagless`, so this should only occur when running very custom test invocations.

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

Depends on: https://git.openjdk.org/jdk/pull/28409

Commit messages:
 - Gtest LogTagSet.defaults should run in OTHER VM

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

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


More information about the hotspot-runtime-dev mailing list