aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/com/jogamp/opengl/test/junit/util/GLTestUtil.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/com/jogamp/opengl/test/junit/util/GLTestUtil.java')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/util/GLTestUtil.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/util/GLTestUtil.java b/src/test/com/jogamp/opengl/test/junit/util/GLTestUtil.java
index 792dfa831..323cbb537 100644
--- a/src/test/com/jogamp/opengl/test/junit/util/GLTestUtil.java
+++ b/src/test/com/jogamp/opengl/test/junit/util/GLTestUtil.java
@@ -99,7 +99,10 @@ public class GLTestUtil extends TestUtil {
}
t1 = System.currentTimeMillis();
}
- return (t1-t0) < TIME_OUT;
+ final boolean to = (t1-t0) >= TIME_OUT;
+ final boolean ok = realized == glad.isRealized();
+ System.err.println("waitForRealized: to "+to+", goal reached "+ok);
+ return !to || ok;
}
}