[pypy-svn] r52749 - pypy/branch/jit-hotpath/pypy/jit/timeshifter/test
cfbolz at codespeak.net
cfbolz at codespeak.net
Wed Mar 19 22:57:08 CET 2008
Author: cfbolz
Date: Wed Mar 19 22:57:05 2008
New Revision: 52749
Modified:
pypy/branch/jit-hotpath/pypy/jit/timeshifter/test/test_rcontainer.py
Log:
passing test about virtual structs not merging ptr variables
Modified: pypy/branch/jit-hotpath/pypy/jit/timeshifter/test/test_rcontainer.py
==============================================================================
--- pypy/branch/jit-hotpath/pypy/jit/timeshifter/test/test_rcontainer.py (original)
+++ pypy/branch/jit-hotpath/pypy/jit/timeshifter/test/test_rcontainer.py Wed Mar 19 22:57:05 2008
@@ -60,7 +60,6 @@
# check that frozenbox also matches newbox exactly
assert self.match(frozenbox, newbox, [constbox23])
-
def test_simple_merge_generalize(self):
S = self.STRUCT
constbox20 = makebox(20)
@@ -97,6 +96,17 @@
# constbox20 in oldbox.
+ def test_merge_with_ptrvar(self):
+ V0 = FakeGenVar()
+ ptrbox = rvalue.PtrRedBox("dummy pointer", V0)
+ S = self.STRUCT
+ constbox20 = makebox(20)
+ oldbox = vmalloc(S, constbox20)
+ frozenbox = oldbox.freeze(rvalue.freeze_memo())
+ # check that ptrbox does not match the frozen virtual struct
+ assert not self.match(frozenbox, ptrbox, [ptrbox])
+
+
def test_nested_structure_no_vars(self):
NESTED = self.NESTEDSTRUCT
constbox30 = makebox(30)
More information about the Pypy-commit
mailing list