diff options
author | Michael Bien <[email protected]> | 2010-09-26 00:41:40 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-09-26 00:41:40 +0200 |
commit | 843360926a2ccd5c92619380e8168dacaf0e4d57 (patch) | |
tree | ba9abc072dcafb2fc14725b041769bf7b0100fbf /test/com/jogamp/opencl/gl/CLGLTest.java | |
parent | 049de167b6b8366418eda993cde30aaa84eba6ca (diff) |
temporary disable CLGLTest on mac to prevent deadlock.
Diffstat (limited to 'test/com/jogamp/opencl/gl/CLGLTest.java')
-rw-r--r-- | test/com/jogamp/opencl/gl/CLGLTest.java | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/test/com/jogamp/opencl/gl/CLGLTest.java b/test/com/jogamp/opencl/gl/CLGLTest.java index 2c940aa8..bcd6342d 100644 --- a/test/com/jogamp/opencl/gl/CLGLTest.java +++ b/test/com/jogamp/opencl/gl/CLGLTest.java @@ -4,6 +4,7 @@ package com.jogamp.opencl.gl; +import com.jogamp.common.os.Platform; import org.junit.Rule; import org.junit.rules.MethodRule; import org.junit.rules.Timeout; @@ -23,7 +24,6 @@ import javax.media.opengl.GLContext; import org.junit.Test; import static org.junit.Assert.*; -import static org.junit.Assume.*; import static java.lang.System.*; /** @@ -36,12 +36,18 @@ public class CLGLTest { public MethodRule methodTimeout= new Timeout(5000); private static GLContext glcontext; + private static GLWindow glWindow; @BeforeClass public static void init() { GLProfile.initSingleton(); + // FIXME remove when JOCL is stabelized on mac + if(Platform.getOS().toLowerCase().contains("mac")) { + fail("quick exit to prevent deadlock"); + } + Display display = NewtFactory.createDisplay(null); // local display assertNotNull(display); @@ -53,9 +59,9 @@ public class CLGLTest { window.setSize(640, 480); - GLWindow glWindow = GLWindow.create(window); + glWindow = GLWindow.create(window); - assumeNotNull(glWindow); + assertNotNull(glWindow); glWindow.setVisible(true); glcontext = glWindow.getContext(); @@ -93,7 +99,7 @@ public class CLGLTest { out.println("isGLMemorySharingSupported==true on: \n "+device); } - assumeNotNull(glcontext); + assertNotNull(glcontext); out.println(device.getPlatform()); CLContext context = CLGLContext.create(glcontext, device); assertNotNull(context); |