From 142d46424ee4b81b088169b40342dcacbd161ecf Mon Sep 17 00:00:00 2001 From: Olivier Chafik Date: Mon, 30 Mar 2015 23:02:09 +0100 Subject: [PATCH] Disable JAWTTest.testWindowPeer for openjdk6 (filed issue #57) --- src/test/java/org/bridj/JAWTTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/bridj/JAWTTest.java b/src/test/java/org/bridj/JAWTTest.java index 4699daa9..48ad35de 100644 --- a/src/test/java/org/bridj/JAWTTest.java +++ b/src/test/java/org/bridj/JAWTTest.java @@ -42,9 +42,11 @@ public class JAWTTest { @Test public void testWindowPeer() throws Exception { - if (Platform.isMacOSX()) { + if (Platform.isMacOSX() || + System.getProperty("java.version)").matches("1\\.6\\..*")) { // Oracle Java and jawt: it's complicated. // See http://forum.lwjgl.org/index.php?topic=4326.0 + // OpenJDK 6 + Linux seem problematic too. return; } assertEquals(6 * Pointer.SIZE, BridJ.sizeOf(JAWT_DrawingSurface.class));