diff options
author | Sven Gothel <[email protected]> | 2010-11-02 06:51:40 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-11-02 06:51:40 +0100 |
commit | 12168e5bced1eaaaf4fc340cd67cdcbc8112d6d7 (patch) | |
tree | cb42456e58ab73bef49024a7df54c695fcf8c6e4 | |
parent | c7c61c8d4032afc74932ebb755a7d8567300f223 (diff) |
TestRecursiveLock01: Reduce threads/loop, otherwise slow machines will time out
-rw-r--r-- | make/scripts/runtest.sh | 4 | ||||
-rw-r--r-- | src/junit/com/jogamp/common/util/locks/TestRecursiveLock01.java | 24 |
2 files changed, 14 insertions, 14 deletions
diff --git a/make/scripts/runtest.sh b/make/scripts/runtest.sh index 2939c2a..61e660b 100644 --- a/make/scripts/runtest.sh +++ b/make/scripts/runtest.sh @@ -23,7 +23,7 @@ function onetest() { } #onetest com.jogamp.common.util.TestIteratorIndexCORE 2>&1 | tee -a $LOG -#onetest com.jogamp.common.util.locks.TestRecursiveLock01 2>&1 | tee -a $LOG -onetest com.jogamp.common.util.TestArrayHashSet01 2>&1 | tee -a $LOG +onetest com.jogamp.common.util.locks.TestRecursiveLock01 2>&1 | tee -a $LOG +#onetest com.jogamp.common.util.TestArrayHashSet01 2>&1 | tee -a $LOG #onetest com.jogamp.gluegen.test.TestPointerBufferEndian 2>&1 | tee -a $LOG #onetest com.jogamp.gluegen.test.TestStructAccessorEndian 2>&1 | tee -a $LOG diff --git a/src/junit/com/jogamp/common/util/locks/TestRecursiveLock01.java b/src/junit/com/jogamp/common/util/locks/TestRecursiveLock01.java index ff3c4e0..ff55976 100644 --- a/src/junit/com/jogamp/common/util/locks/TestRecursiveLock01.java +++ b/src/junit/com/jogamp/common/util/locks/TestRecursiveLock01.java @@ -225,24 +225,24 @@ public class TestRecursiveLock01 { } @Test - public void testLockedObjectThreading200x200Yield() throws InterruptedException { - System.err.println("++++ TestRecursiveLock01.testLockedObjectThreading200x200-Yield"); - testLockedObjectImpl(200, 200, 100, YIELD_YIELD); - System.err.println("---- TestRecursiveLock01.testLockedObjectThreading200x200-Yield"); + public void testLockedObjectThreading25x25Yield() throws InterruptedException { + System.err.println("++++ TestRecursiveLock01.testLockedObjectThreading25x25-Yield"); + testLockedObjectImpl(25, 25, 100, YIELD_YIELD); + System.err.println("---- TestRecursiveLock01.testLockedObjectThreading25x25-Yield"); } // @Test - public void testLockedObjectThreading200x200Sleep() throws InterruptedException { - System.err.println("++++ TestRecursiveLock01.testLockedObjectThreading200x200-Sleep"); - testLockedObjectImpl(200, 200, 100, YIELD_SLEEP); - System.err.println("---- TestRecursiveLock01.testLockedObjectThreading200x200-Sleep"); + public void testLockedObjectThreading25x25Sleep() throws InterruptedException { + System.err.println("++++ TestRecursiveLock01.testLockedObjectThreading25x25-Sleep"); + testLockedObjectImpl(25, 25, 100, YIELD_SLEEP); + System.err.println("---- TestRecursiveLock01.testLockedObjectThreading25x25-Sleep"); } @Test - public void testLockedObjectThreading200x200None() throws InterruptedException { - System.err.println("++++ TestRecursiveLock01.testLockedObjectThreading200x200-None"); - testLockedObjectImpl(200, 200, 100, YIELD_NONE); - System.err.println("---- TestRecursiveLock01.testLockedObjectThreading200x200-None"); + public void testLockedObjectThreading25x25None() throws InterruptedException { + System.err.println("++++ TestRecursiveLock01.testLockedObjectThreading25x25-None"); + testLockedObjectImpl(25, 25, 100, YIELD_NONE); + System.err.println("---- TestRecursiveLock01.testLockedObjectThreading25x25-None"); } static int atoi(String a) { |