summaryrefslogtreecommitdiffstats
path: root/src/junit/com/jogamp/common/util/IntObjectHashMapTest.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/IntObjectHashMapTest.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/IntObjectHashMapTest.java')
-rw-r--r--src/junit/com/jogamp/common/util/IntObjectHashMapTest.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/junit/com/jogamp/common/util/IntObjectHashMapTest.java b/src/junit/com/jogamp/common/util/IntObjectHashMapTest.java
index 8c4d9c8..00de133 100644
--- a/src/junit/com/jogamp/common/util/IntObjectHashMapTest.java
+++ b/src/junit/com/jogamp/common/util/IntObjectHashMapTest.java
@@ -37,6 +37,9 @@ import java.util.Iterator;
import java.util.Map.Entry;
import org.junit.BeforeClass;
import org.junit.Test;
+
+import com.jogamp.common.os.Platform;
+
import static org.junit.Assert.*;
/**
@@ -51,7 +54,7 @@ public class IntObjectHashMapTest {
@BeforeClass
public static void init() {
- iterations = 10000;
+ iterations = ( Platform.getCPUType() == Platform.CPUType.ARM ) ? 100 : 10000;
pairs = new IntIntObjUniqueRndValues(iterations);
}