ShapeNotSetSometimes.java fails intermittently with a RuntimeException on macOS-aarch64 Test threw exception: java.lang.RuntimeException: Test failed. The shape has not been applied.
Fix: The test has been modified to take a screenshot of the area and then analyse the pixel color in the screenshot rather than getting individual pixels from the screen for each test. Also the timeout of the test has been increased to 5 minutes(300 seconds) as sometimes it times out with the default timeout of 2 minutes(120 seconds). Testing: After fixing the test, it has been run 40 times per platform(Windows, Linux, MacOS x64 and MacOS aarch64) using Mach5 and got 100% pass rate . ------------- Commit messages: - 8341370: Test java/awt/Frame/ShapeNotSetSometimes/ShapeNotSetSometimes.java fails intermittently on macOS-aarch64 Changes: https://git.openjdk.org/jdk/pull/25354/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25354&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8341370 Stats: 14 lines in 2 files changed: 3 ins; 5 del; 6 mod Patch: https://git.openjdk.org/jdk/pull/25354.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/25354/head:pull/25354 PR: https://git.openjdk.org/jdk/pull/25354