RFR: 8275689: [TESTBUG] Use color tolerance only for XRender in BlitRotateClippedArea test

Sergey Bylokhov serb at openjdk.java.net
Tue Oct 26 19:17:12 UTC 2021


On Tue, 26 Oct 2021 16:24:35 GMT, Jayathirth D V <jdv at openjdk.org> wrote:

> This is follow up change after : https://bugs.openjdk.java.net/browse/JDK-8255724
> 
> Now color tolerance is only added for Linux(XRender is default pipeline in Linux and Solaris is not supported anymore). So I am using jdk.test.lib.Platform to determine which OS we are running on. CI run on all platforms is green.

test/jdk/java/awt/image/DrawImage/BlitRotateClippedArea.java line 109:

> 107:     private static void validate(BufferedImage gold, BufferedImage img)
> 108:             throws IOException {
> 109:         if (!Platform.isLinux()) {

I think it will pass on Linux even if the X11 or OGL pipeline is used. So probably some check of the graphics config class name(XRGraphicsConfig?) will work?

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

PR: https://git.openjdk.java.net/jdk/pull/6119



More information about the client-libs-dev mailing list