From 7695f8eee4af8be3b86a0b6473cc60327ad8d9a3 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Sun, 23 May 2010 04:17:24 +0200 Subject: enabled CLGLTest again... give it another try with hudson. --- test/com/jogamp/opencl/gl/CLGLTest.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'test/com/jogamp/opencl') 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()); -- cgit v1.2.3