RFR: JDK-8320113: [macos14] : ShapeNotSetSometimes.java fails intermittently on macOS 14
Harshitha Onkar
honkar at openjdk.org
Fri Jan 12 20:21:52 UTC 2024
On Thu, 21 Dec 2023 20:33:53 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:
> ShapeNotSetSometimes.java fails intermittently on macOS 14. Following is a test stabilization fix for macOS 14. With the added delays ShapeNotSetSometimes.java passes on older versions of macOS as well as on macOS 14.1, 14.2.
> This test is fails intermittently on linux with the current fix. Running the test on all platforms with slightly different delay values.
In this test `colorCheck()` is repeated for 50 iterations. In the rare event, color check fails at random attempt no. (and happens to pass on previous iterations (as shown below). To stabilize the test on various platforms and machines, the constraint that **colorcheck() needs to pass for all the 50 iterations** is relaxed by allowing the test to continue until 3 failed attempts. The test throws RuntimeException after 3 failed attempts.
CI Testing with the stabilization fix looks good on all platforms including macOS 14.
Attempt 8
Checking 150, 130, java.awt.Color[r=255,g=255,b=255] should be java.awt.Color[r=255,g=255,b=255]
Checking 150, 20, java.awt.Color[r=0,g=255,b=0] should be java.awt.Color[r=0,g=255,b=0]
Checking 280, 120, java.awt.Color[r=0,g=255,b=0] should be java.awt.Color[r=0,g=255,b=0]
Checking 150, 250, java.awt.Color[r=0,g=255,b=0] should be java.awt.Color[r=0,g=255,b=0]
Checking 20, 120, java.awt.Color[r=0,g=255,b=0] should be java.awt.Color[r=0,g=255,b=0]
Checking 62, 62, java.awt.Color[r=0,g=244,b=0] should not be java.awt.Color[r=255,g=255,b=255]
Checking 240, 185, java.awt.Color[r=0,g=232,b=0] should not be java.awt.Color[r=255,g=255,b=255]
Attempt 9
Checking 150, 130, java.awt.Color[r=255,g=255,b=255] should be java.awt.Color[r=255,g=255,b=255]
Checking 150, 20, java.awt.Color[r=0,g=255,b=0] should be java.awt.Color[r=0,g=255,b=0]
Checking 280, 120, java.awt.Color[r=0,g=255,b=0] should be java.awt.Color[r=0,g=255,b=0]
Checking 150, 250, java.awt.Color[r=0,g=255,b=0] should be java.awt.Color[r=0,g=255,b=0]
Checking 20, 120, java.awt.Color[r=0,g=255,b=0] should be java.awt.Color[r=0,g=255,b=0]
Checking 62, 62, java.awt.Color[r=0,g=240,b=0] should not be java.awt.Color[r=255,g=255,b=255]
Checking 240, 185, java.awt.Color[r=0,g=228,b=0] should not be java.awt.Color[r=255,g=255,b=255]
Attempt 10
Checking 150, 130, java.awt.Color[r=0,g=255,b=0] should be java.awt.Color[r=255,g=255,b=255]
window.getX() = 220, window.getY() = 400
Checking for transparency failed: point: 370, 530
actual java.awt.Color[r=0,g=255,b=0]
expected java.awt.Color[r=255,g=255,b=255]
java.lang.RuntimeException: Test failed. The shape has not been applied.
at ShapeNotSetSometimes.colorCheck(ShapeNotSetSometimes.java:185)
-------------
PR Comment: https://git.openjdk.org/jdk/pull/17180#issuecomment-1889898329
More information about the client-libs-dev
mailing list