aboutsummaryrefslogtreecommitdiffstats
path: root/src/junit/com/jogamp/common/util/LongIntHashMapTest.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-07-17 16:41:29 +0200
committerSven Gothel <[email protected]>2011-07-17 16:41:29 +0200
commit546cd96a6bfc181cb2d9a7859f2dc9f69ec3a429 (patch)
tree6e446e3f6b36a40ff2c7f157e92563821cb28986 /src/junit/com/jogamp/common/util/LongIntHashMapTest.java
parent9a889948e7d649286ae0a473b49d14461c8981c5 (diff)
Junit tests on ARM: Reducing some test/perf loops allowing to pass tests on low performance ARM
Diffstat (limited to 'src/junit/com/jogamp/common/util/LongIntHashMapTest.java')
-rw-r--r--src/junit/com/jogamp/common/util/LongIntHashMapTest.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/junit/com/jogamp/common/util/LongIntHashMapTest.java b/src/junit/com/jogamp/common/util/LongIntHashMapTest.java
index dccd8a3..239bef1 100644
--- a/src/junit/com/jogamp/common/util/LongIntHashMapTest.java
+++ b/src/junit/com/jogamp/common/util/LongIntHashMapTest.java
@@ -37,6 +37,9 @@ import java.util.HashMap;
import java.util.Map.Entry;
import org.junit.BeforeClass;
import org.junit.Test;
+
+import com.jogamp.common.os.Platform;
+
import static org.junit.Assert.*;
import static java.lang.System.*;
@@ -52,7 +55,7 @@ public class LongIntHashMapTest {
@BeforeClass
public static void init() {
- iterations = 10000;
+ iterations = ( Platform.getCPUType() == Platform.CPUType.ARM ) ? 100 : 10000;
pairs = new LongIntUniqueRndValues(iterations);
}