From 7587cce91c3fda7dcff4e36e1aa0edf53bf34e00 Mon Sep 17 00:00:00 2001
From: Sven Gothel
Date: Tue, 9 Oct 2012 05:56:45 +0200
Subject: TestInitConcurrent0[12]NEWT: Reduce test w/ 16 threads to 6 for ARM
|| WINDOWS if not started from console
Sadly it appears that w/ the ATI Catalyst driver,
the TestInitConcurrent02NEWT w/ 16 concurrent threads brings down the JVM sometimes.
This results in a locked singleton thread and distrubs the whole unit tests session.
We are aware of the ATI Catalyst threading bug on Windows and Linux.
---
.../test/junit/jogl/acore/TestInitConcurrent01NEWT.java | 12 +++++++++---
.../test/junit/jogl/acore/TestInitConcurrent02NEWT.java | 12 +++++++++---
2 files changed, 18 insertions(+), 6 deletions(-)
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestInitConcurrent01NEWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestInitConcurrent01NEWT.java
index e5ed8a79f..719d1fc9d 100644
--- a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestInitConcurrent01NEWT.java
+++ b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestInitConcurrent01NEWT.java
@@ -42,6 +42,7 @@ import com.jogamp.common.os.Platform;
*
*/
public class TestInitConcurrent01NEWT extends InitConcurrentBaseNEWT {
+ static boolean mainRun = false;
@Test
public void test02TwoThreads() throws InterruptedException {
@@ -55,16 +56,21 @@ public class TestInitConcurrent01NEWT extends InitConcurrentBaseNEWT {
@Test
public void test16SixteenThreads() throws InterruptedException {
- if( Platform.getCPUFamily() != Platform.CPUFamily.ARM ) {
+ if( !mainRun &&
+ Platform.getCPUFamily() != Platform.CPUFamily.ARM &&
+ Platform.getOSType() != Platform.OSType.WINDOWS ) {
runJOGLTasks(16, true);
} else {
- runJOGLTasks( 8, true);
+ runJOGLTasks( 6, true);
}
}
public static void main(String args[]) throws IOException {
+ mainRun = true;
for(int i=0; i
*/
public class TestInitConcurrent02NEWT extends InitConcurrentBaseNEWT {
+ static boolean mainRun = false;
@Test
public void test02TwoThreads() throws InterruptedException {
@@ -55,16 +56,21 @@ public class TestInitConcurrent02NEWT extends InitConcurrentBaseNEWT {
@Test
public void test16SixteenThreads() throws InterruptedException {
- if( Platform.getCPUFamily() != Platform.CPUFamily.ARM ) {
+ if( !mainRun &&
+ Platform.getCPUFamily() != Platform.CPUFamily.ARM &&
+ Platform.getOSType() != Platform.OSType.WINDOWS ) {
runJOGLTasks(16, false);
} else {
- runJOGLTasks( 8, false);
+ runJOGLTasks( 6, false);
}
}
public static void main(String args[]) throws IOException {
+ mainRun = true;
for(int i=0; i