[pypy-commit] pypy default: Failing test (from an example from Remi_M on irc).
arigo
noreply at buildbot.pypy.org
Wed Aug 31 18:53:59 CEST 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r46947:bc7de5b41f0c
Date: 2011-08-31 15:01 +0200
http://bitbucket.org/pypy/pypy/changeset/bc7de5b41f0c/
Log: Failing test (from an example from Remi_M on irc).
diff --git a/pypy/jit/metainterp/test/test_warmspot.py b/pypy/jit/metainterp/test/test_warmspot.py
--- a/pypy/jit/metainterp/test/test_warmspot.py
+++ b/pypy/jit/metainterp/test/test_warmspot.py
@@ -252,6 +252,17 @@
self.check_loops({'int_sub': 1, 'int_gt': 1, 'guard_true': 1,
'jump': 1})
+ def test_bug_continuerunningnormally(self):
+ mydriver = JitDriver(greens=['a'], reds=['m'])
+ def f1(m):
+ a = None
+ while m > 0:
+ mydriver.jit_merge_point(a=a, m=m)
+ m = m - 1
+ if m == 10:
+ pass # other case
+ self.meta_interp(f1, [18])
+
class TestLLWarmspot(WarmspotTests, LLJitMixin):
CPUClass = runner.LLtypeCPU
More information about the pypy-commit
mailing list