summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/jogl/acore/TestSharedContextVBOES2NEWT5.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestSharedContextVBOES2NEWT5.java b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestSharedContextVBOES2NEWT5.java
index 4380b2dc5..8317bb0c1 100644
--- a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestSharedContextVBOES2NEWT5.java
+++ b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestSharedContextVBOES2NEWT5.java
@@ -204,7 +204,13 @@ public class TestSharedContextVBOES2NEWT5 extends UITestCase {
sf[i] = null;
sc[i] = null;
}
- System.gc();
+ {
+ // Ensure nulled objects got destroyed and taken from the GLContextShareSet map.
+ System.gc();
+ try { Thread.sleep(100); } catch (final InterruptedException ie) {}
+ System.gc();
+ try { Thread.sleep(100); } catch (final InterruptedException ie) {}
+ }
System.err.println("XXX-"+j+"-X-SX2 - GLContextShareSet.Map");
GLContextShareSet.printMap(System.err);
Assert.assertEquals("GLContextShareSet ctx1.createdCount is not 1", 1, GLContextShareSet.getCreatedShareCount(ctx1));