[pypy-commit] pypy arm-backend-2: reduce the number of iterations for this test on ARM
bivab
noreply at buildbot.pypy.org
Fri Aug 3 14:50:38 CEST 2012
Author: David Schneider <david.schneider at picle.org>
Branch: arm-backend-2
Changeset: r56564:16c1093e3d79
Date: 2012-08-03 13:20 +0200
http://bitbucket.org/pypy/pypy/changeset/16c1093e3d79/
Log: reduce the number of iterations for this test on ARM
diff --git a/pypy/jit/backend/test/test_zll_stress.py b/pypy/jit/backend/test/test_zll_stress.py
--- a/pypy/jit/backend/test/test_zll_stress.py
+++ b/pypy/jit/backend/test/test_zll_stress.py
@@ -1,12 +1,18 @@
from pypy.jit.backend.test.test_random import check_random_function, Random
from pypy.jit.backend.test.test_ll_random import LLtypeOperationBuilder
from pypy.jit.backend.detect_cpu import getcpuclass
+import platform()
CPU = getcpuclass()
+iterations = 1000
+if platform.machine().startwith('arm'):
+ iterations = 100
+
+
def test_stress():
cpu = CPU(None, None)
cpu.setup_once()
r = Random()
- for i in range(1000):
- check_random_function(cpu, LLtypeOperationBuilder, r, i, 1000)
+ for i in range(iterations):
+ check_random_function(cpu, LLtypeOperationBuilder, r, i, iterations)
More information about the pypy-commit
mailing list