[pypy-svn] r24106 - pypy/dist/pypy/translator/c/test
mwh at codespeak.net
mwh at codespeak.net
Wed Mar 8 15:04:05 CET 2006
Author: mwh
Date: Wed Mar 8 15:04:04 2006
New Revision: 24106
Modified:
pypy/dist/pypy/translator/c/test/test_newgc.py
Log:
a skipped test that i don't know how to make pass
Modified: pypy/dist/pypy/translator/c/test/test_newgc.py
==============================================================================
--- pypy/dist/pypy/translator/c/test/test_newgc.py (original)
+++ pypy/dist/pypy/translator/c/test/test_newgc.py Wed Mar 8 15:04:04 2006
@@ -269,3 +269,19 @@
fn = self.getcompiled(f)
res = fn()
assert res == 42
+
+ def test_framework_nongc_static_root(self):
+ py.test.skip("I don't know how to make this work")
+ S = lltype.GcStruct("S", ('x', lltype.Signed))
+ T = lltype.Struct("T", ('p', lltype.Ptr(S)))
+ t = lltype.malloc(T, immortal=True)
+ def f():
+ t.p = lltype.malloc(S)
+ t.p.x = 43
+ for i in range(1000000):
+ s = lltype.malloc(S)
+ s.x = i
+ return t.p.x
+ fn = self.getcompiled(f)
+ res = fn()
+ assert res == 43
More information about the Pypy-commit
mailing list