[pypy-commit] pypy default: cleanup test
bdkearns
noreply at buildbot.pypy.org
Sat Apr 26 04:36:41 CEST 2014
Author: Brian Kearns <bdkearns at gmail.com>
Branch:
Changeset: r70992:298068f3d4ea
Date: 2014-04-25 16:54 -0400
http://bitbucket.org/pypy/pypy/changeset/298068f3d4ea/
Log: cleanup test
diff --git a/pypy/module/pypyjit/test_pypy_c/test_buffers.py b/pypy/module/pypyjit/test_pypy_c/test_buffers.py
--- a/pypy/module/pypyjit/test_pypy_c/test_buffers.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_buffers.py
@@ -3,16 +3,18 @@
class TestBuffers(BaseTestPyPyC):
def test_re_match(self):
- def main():
+ def main(n):
import re
import array
p = re.compile('.+')
a = array.array('c', 'test' * 1000)
i = 0
- while i < 5000:
+ while i < n:
i += 1
p.match(a) # ID: match
- log = self.run(main, [])
+ return i
+ log = self.run(main, [1000])
+ assert log.result == 1000
loop, = log.loops_by_filename(self.filepath)
assert loop.match_by_id('match', """
guard_not_invalidated(descr=...)
@@ -21,8 +23,5 @@
guard_false(i67, descr=...)
i69 = int_gt(., i65)
guard_true(i69, descr=...)
- guard_not_invalidated(descr=...)
- i74 = getfield_raw(., descr=...)
- i75 = int_lt(i74, 0)
- guard_false(i75, descr=...)
+ --TICK--
""")
More information about the pypy-commit
mailing list