diff options
author | Michael Bien <[email protected]> | 2010-05-23 04:17:24 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-05-23 04:17:24 +0200 |
commit | 7695f8eee4af8be3b86a0b6473cc60327ad8d9a3 (patch) | |
tree | bc18351537d77162d2c3ac86739d42382be8248a /test | |
parent | 03f67f2edab150d6e6f82928a5be1ffc8e26e36e (diff) |
enabled CLGLTest again... give it another try with hudson.
Diffstat (limited to 'test')
-rw-r--r-- | test/com/jogamp/opencl/gl/CLGLTest.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/com/jogamp/opencl/gl/CLGLTest.java b/test/com/jogamp/opencl/gl/CLGLTest.java index 4c4b0378..8bcb195f 100644 --- a/test/com/jogamp/opencl/gl/CLGLTest.java +++ b/test/com/jogamp/opencl/gl/CLGLTest.java @@ -17,10 +17,10 @@ import javax.media.opengl.GLProfile; import org.junit.AfterClass; import org.junit.BeforeClass; import javax.media.opengl.GLContext; -import org.junit.Assume; import org.junit.Test; import static org.junit.Assert.*; +import static org.junit.Assume.*; import static java.lang.System.*; /** @@ -31,7 +31,7 @@ public class CLGLTest { private static GLContext glcontext; -// @BeforeClass + @BeforeClass public static void init() { Display display = NewtFactory.createDisplay(null); // local display @@ -46,7 +46,8 @@ public class CLGLTest { window.setSize(640, 480); GLWindow glWindow = GLWindow.create(window); - assertNotNull(glWindow); + + assumeNotNull(glWindow); glWindow.setVisible(true); glcontext = glWindow.getContext(); @@ -60,7 +61,7 @@ public class CLGLTest { } } -// @Test + @Test public void createContextTest() { out.println(" - - - glcl; createContextTest - - - "); @@ -81,6 +82,7 @@ public class CLGLTest { out.println("isGLMemorySharingSupported==true on: \n "+device); } + assumeNotNull(glcontext); CLContext context = CLGLContext.create(glcontext, device); assertNotNull(context); // assertTrue(glcontext.isCurrent()); |