mainly clean backport of https://github.com/openjdk/jfx/commit/6ec588c5635964769b354bce37e68d7a6c00985a (JDK-8315873)
Reason for being non-clean: * we already applied 8350437 * we don't have aarch64-mac * we don't have TEST_ONLY in build.gradle ------------- Commit messages: - Backport 6ec588c5635964769b354bce37e68d7a6c00985a Changes: https://git.openjdk.org/jfx17u/pull/229/files Webrev: https://webrevs.openjdk.org/?repo=jfx17u&pr=229&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8315873 Stats: 7 lines in 1 file changed: 0 ins; 0 del; 7 mod Patch: https://git.openjdk.org/jfx17u/pull/229.diff Fetch: git fetch https://git.openjdk.org/jfx17u.git pull/229/head:pull/229 PR: https://git.openjdk.org/jfx17u/pull/229