[pypy-commit] pypy default: enable another test_zjit
bdkearns
noreply at buildbot.pypy.org
Thu Apr 17 05:27:27 CEST 2014
Author: Brian Kearns <bdkearns at gmail.com>
Branch:
Changeset: r70680:dd3c87c0ab56
Date: 2014-04-16 21:18 -0400
http://bitbucket.org/pypy/pypy/changeset/dd3c87c0ab56/
Log: enable another test_zjit
diff --git a/pypy/module/micronumpy/test/test_zjit.py b/pypy/module/micronumpy/test/test_zjit.py
--- a/pypy/module/micronumpy/test/test_zjit.py
+++ b/pypy/module/micronumpy/test/test_zjit.py
@@ -94,14 +94,26 @@
a -> 3
"""
- def test_floatadd(self):
+ def test_float_add(self):
result = self.run("float_add")
assert result == 3 + 3
- py.test.skip("don't run for now")
- self.check_simple_loop({"raw_load": 1, "float_add": 1,
- "raw_store": 1, "int_add": 1,
- "int_ge": 1, "guard_false": 1, "jump": 1,
- 'arraylen_gc': 1})
+ self.check_trace_count(1)
+ self.check_simple_loop({
+ 'float_add': 1,
+ 'getarrayitem_gc': 3,
+ 'getfield_gc': 7,
+ 'guard_false': 1,
+ 'guard_not_invalidated': 1,
+ 'guard_true': 3,
+ 'int_add': 9,
+ 'int_ge': 1,
+ 'int_lt': 3,
+ 'jump': 1,
+ 'raw_load': 2,
+ 'raw_store': 1,
+ 'setarrayitem_gc': 3,
+ 'setfield_gc': 6,
+ })
def define_sum():
return """
More information about the pypy-commit
mailing list