diff options
author | Sven Gothel <[email protected]> | 2012-01-09 19:06:24 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-01-09 19:06:24 +0100 |
commit | 1a79d4f87d750b3146b80bd861230022e66108d6 (patch) | |
tree | bbe42af7e5e35f8b94df44f25b590a37dbd5a4af | |
parent | cf9794c6f443154893354a5390246b295439635e (diff) |
Add 'AWT' in JOGL's SWT GLCanvas test case, since impl. still needs AWT threading (-> FIXME)
-rw-r--r-- | make/build-test.xml | 2 | ||||
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java | 4 | ||||
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/jogl/swt/TestSWTJOGLGLCanvas01GLnAWT.java (renamed from src/test/com/jogamp/opengl/test/junit/jogl/swt/TestSWTJOGLGLCanvas01GLn.java) | 8 |
3 files changed, 11 insertions, 3 deletions
diff --git a/make/build-test.xml b/make/build-test.xml index 533ca301c..0f176de92 100644 --- a/make/build-test.xml +++ b/make/build-test.xml @@ -398,7 +398,7 @@ </for> </target> - <target name="junit.run.swt.awt" depends="test.compile" description="Runs all SWT_AWT tests." if="isSWTRuntimeAvailable"> + <target name="junit.run.swt.awt" depends="test.compile" description="Runs all SWT AWT tests." if="isSWTRuntimeAvailable"> <!-- Test*SWT*AWT* --> <junit forkmode="perTest" showoutput="true" fork="true" haltonerror="off" timeout="${batchtest.timeout}"> <env key="${system.env.library.path}" path="${obj.all.paths}"/> diff --git a/src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java b/src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java index c3936c615..ef1c3fbeb 100644 --- a/src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java +++ b/src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java @@ -71,6 +71,10 @@ import com.jogamp.opengl.JoglVersion; /** * Native SWT Canvas implementing GLAutoDrawable + * <p> + * FIXME: Still needs AWT for threading impl., + * ie. will issue a 'wrong thread' error if runs in headless mode! + * </p> */ public class GLCanvas extends Canvas implements GLAutoDrawable { diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/swt/TestSWTJOGLGLCanvas01GLn.java b/src/test/com/jogamp/opengl/test/junit/jogl/swt/TestSWTJOGLGLCanvas01GLnAWT.java index d8bf3e79f..6e5e7d802 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/swt/TestSWTJOGLGLCanvas01GLn.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/swt/TestSWTJOGLGLCanvas01GLnAWT.java @@ -56,9 +56,13 @@ import com.jogamp.opengl.test.junit.util.UITestCase; * <p>
* Uses JOGL's new SWT GLCanvas.
* </p>
+ * <p>
+ * Holds AWT in it's test name, since our impl. still needs the AWT threading,
+ * see {@link GLCanvas}.
+ * </p>
* @author Wade Walker, et.al.
*/
-public class TestSWTJOGLGLCanvas01GLn extends UITestCase {
+public class TestSWTJOGLGLCanvas01GLnAWT extends UITestCase {
static int duration = 250;
@@ -173,6 +177,6 @@ public class TestSWTJOGLGLCanvas01GLn extends UITestCase { }
}
System.out.println("durationPerTest: "+duration);
- org.junit.runner.JUnitCore.main(TestSWTJOGLGLCanvas01GLn.class.getName());
+ org.junit.runner.JUnitCore.main(TestSWTJOGLGLCanvas01GLnAWT.class.getName());
}
}
|