From 546cd96a6bfc181cb2d9a7859f2dc9f69ec3a429 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 17 Jul 2011 16:41:29 +0200 Subject: Junit tests on ARM: Reducing some test/perf loops allowing to pass tests on low performance ARM --- src/junit/com/jogamp/common/util/IntIntHashMapTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/junit/com/jogamp/common/util/IntIntHashMapTest.java') diff --git a/src/junit/com/jogamp/common/util/IntIntHashMapTest.java b/src/junit/com/jogamp/common/util/IntIntHashMapTest.java index 04f2d67..09aff1c 100644 --- a/src/junit/com/jogamp/common/util/IntIntHashMapTest.java +++ b/src/junit/com/jogamp/common/util/IntIntHashMapTest.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.*; import static java.lang.System.*; @@ -52,7 +55,7 @@ public class IntIntHashMapTest { @BeforeClass public static void init() { - iterations = 10000; + iterations = ( Platform.CPUType.ARM == Platform.CPU_TYPE ) ? 100 : 10000; pairs = new IntIntUniqueRndValues(iterations); } -- cgit v1.2.3