aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/com
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-09-29 18:35:56 +0200
committerSven Gothel <[email protected]>2015-09-29 18:35:56 +0200
commit4b0be44f54a7d89192c03725a16e396eba98a712 (patch)
tree468510cd5955e0124f37f3bca2cad3a377818b00 /src/test/com
parentd5dc8a6cad034107d41d9a2e5f621ec4e6ce1f4e (diff)
Bug 1225: Unit test shall not fail if AWT is not alive, simply report and return - assume failure is recorded
Diffstat (limited to 'src/test/com')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/jogl/awt/TestBug1225EventQueueInterruptedAWT.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/awt/TestBug1225EventQueueInterruptedAWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/awt/TestBug1225EventQueueInterruptedAWT.java
index 805af86fb..fa44024b1 100644
--- a/src/test/com/jogamp/opengl/test/junit/jogl/awt/TestBug1225EventQueueInterruptedAWT.java
+++ b/src/test/com/jogamp/opengl/test/junit/jogl/awt/TestBug1225EventQueueInterruptedAWT.java
@@ -58,7 +58,6 @@ import com.jogamp.opengl.GLEventListener;
import com.jogamp.opengl.awt.GLCanvas;
import org.junit.Test;
-import org.junit.Assume;
import org.junit.FixMethodOrder;
import org.junit.runners.MethodSorters;
@@ -126,7 +125,11 @@ public class TestBug1225EventQueueInterruptedAWT extends UITestCase {
}
}
void testImpl(final boolean useGL) throws InterruptedException, InvocationTargetException {
- Assume.assumeTrue("AWT not alive", AWTRobotUtil.isAWTEDTAlive());
+ if( !AWTRobotUtil.isAWTEDTAlive() ) {
+ System.err.println("Test aborted: AWT not alive");
+ return;
+ }
+ // Assume.assumeTrue("AWT not alive", AWTRobotUtil.isAWTEDTAlive());
// Assert.assertTrue("AWT not alive", AWTRobotUtil.isAWTEDTAlive());
final OurUncaughtExceptionHandler uncaughtHandler = new OurUncaughtExceptionHandler();
Thread.setDefaultUncaughtExceptionHandler( uncaughtHandler );