On macOS the subprocess spawned by this test initializes AppKit while running the `ColorConvertOp`, and macOS then writes an `ApplePersistenceIgnoreState` state-restoration line to stderr. Because the test asserts `stderrShouldBeEmpty()`, it fails on headful macOS hosts (consistently on macos-x64 and macos-aarch64).
The subprocess only performs a color-space conversion and needs no display, so it is run headless (`-Djava.awt.headless=true`). AppKit is then never initialized and stderr stays empty. Testing: the test passes on macOS x64 and aarch64 with the change, and a full test tier shows no regression on either architecture. --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - 8397957: [TEST_BUG] [macos] java/awt/color/ICC_Profile/GetProfileDataAfterTransform.java fails: subprocess stderr not empty (ApplePersistenceIgnoreState) Changes: https://git.openjdk.org/jdk/pull/34007/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=34007&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8397957 Stats: 3 lines in 1 file changed: 3 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/34007.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/34007/head:pull/34007 PR: https://git.openjdk.org/jdk/pull/34007
