summaryrefslogtreecommitdiffstats
path: root/src/test/com/jogamp/opengl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-07-10 00:10:52 +0200
committerSven Gothel <[email protected]>2013-07-10 00:10:52 +0200
commitc45050df173141bf7c393d59ee9dccd00eedc73a (patch)
tree3a5e8235a2056ac5195ba06f1fe67eeaaad51ded /src/test/com/jogamp/opengl
parent1bf8c73cb5c76c0ecd7bf7a97cdde990b3ad384e (diff)
TestScreenMode00cNEWT: Enable testing of UITestCase.resetXRandRIfX11() only in manual mode.
Diffstat (limited to 'src/test/com/jogamp/opengl')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode00cNEWT.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode00cNEWT.java b/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode00cNEWT.java
index 461b3e1fa..bc1dcf792 100644
--- a/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode00cNEWT.java
+++ b/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode00cNEWT.java
@@ -59,6 +59,7 @@ import javax.media.nativewindow.util.Dimension;
* Tests X11 XRandR MonitorMode reset via {@link UITestCase#resetXRandRIfX11()}.
*/
public class TestScreenMode00cNEWT extends UITestCase {
+ static boolean manualTest = false;
static GLProfile glp;
static int width, height;
@@ -69,7 +70,7 @@ public class TestScreenMode00cNEWT extends UITestCase {
public static void initClass() {
setResetXRandRIfX11AfterClass();
NativeWindowFactory.initSingleton();
- if( NativeWindowFactory.TYPE_X11 != NativeWindowFactory.getNativeWindowType(true) ) {
+ if( !manualTest || NativeWindowFactory.TYPE_X11 != NativeWindowFactory.getNativeWindowType(true) ) {
setTestSupported(false);
return;
}
@@ -230,6 +231,7 @@ public class TestScreenMode00cNEWT extends UITestCase {
}
public static void main(String args[]) throws IOException {
+ manualTest = true;
for(int i=0; i<args.length; i++) {
if(args[i].equals("-time")) {
i++;