From c45050df173141bf7c393d59ee9dccd00eedc73a Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 10 Jul 2013 00:10:52 +0200 Subject: TestScreenMode00cNEWT: Enable testing of UITestCase.resetXRandRIfX11() only in manual mode. --- .../com/jogamp/opengl/test/junit/newt/mm/TestScreenMode00cNEWT.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/test/com/jogamp') 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