[pypy-svn] pypy default: improve the test
antocuni
commits-noreply at bitbucket.org
Wed Mar 16 10:54:45 CET 2011
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch:
Changeset: r42698:f6fabf47a027
Date: 2011-03-16 10:46 +0100
http://bitbucket.org/pypy/pypy/changeset/f6fabf47a027/
Log: improve the test
diff --git a/pypy/module/pypyjit/test_pypy_c/test_pypy_c_new.py b/pypy/module/pypyjit/test_pypy_c/test_pypy_c_new.py
--- a/pypy/module/pypyjit/test_pypy_c/test_pypy_c_new.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_pypy_c_new.py
@@ -578,3 +578,11 @@
log = self.run(f, [100000])
assert log.result == 100000
loop, = log.loops_by_filename(self.filepath)
+ assert loop.match("""
+ i7 = int_lt(i4, i5)
+ guard_true(i7, descr=<Guard3>)
+ --EXC-TICK--
+ i14 = int_add(i4, 1)
+ --TICK--
+ jump(p0, p1, p2, p3, i14, i5, p6, descr=<Loop0>)
+ """)
More information about the Pypy-commit
mailing list