[pypy-commit] pypy stmgc-c4: another test
Raemi
noreply at buildbot.pypy.org
Mon Jan 13 16:39:54 CET 2014
Author: Remi Meier <remi.meier at gmail.com>
Branch: stmgc-c4
Changeset: r68648:3cee8a6b2cd2
Date: 2014-01-13 14:58 +0100
http://bitbucket.org/pypy/pypy/changeset/3cee8a6b2cd2/
Log: another test
diff --git a/rpython/jit/metainterp/optimizeopt/test/test_stm.py b/rpython/jit/metainterp/optimizeopt/test/test_stm.py
--- a/rpython/jit/metainterp/optimizeopt/test/test_stm.py
+++ b/rpython/jit/metainterp/optimizeopt/test/test_stm.py
@@ -84,13 +84,35 @@
"""
self.optimize_loop(ops, expected, expected_preamble=preamble)
- # def test_dont_remove_first_tb(self):
- # ops = """
- # []
- # stm_transaction_break()
- # guard_not_forced() []
-
+ def test_dont_remove_first_tb(self):
+ ops = """
+ []
+ stm_transaction_break()
+ guard_not_forced() []
+ stm_transaction_break()
+ guard_not_forced() []
+ stm_transaction_break()
+ guard_not_forced() []
+ i0 = call(123, descr=sbtdescr)
+ guard_false(i0) []
+ jump()
+ """
+ preamble = """
+ []
+ stm_transaction_break()
+ guard_not_forced() []
+ i0 = call(123, descr=sbtdescr)
+ guard_false(i0) []
+ jump()
+ """
+ expected = """
+ []
+ i0 = call(123, descr=sbtdescr)
+ guard_false(i0) []
+ jump()
+ """
+ self.optimize_loop(ops, expected, expected_preamble=preamble)
More information about the pypy-commit
mailing list