[pypy-svn] r47198 - pypy/branch/kill-keepalives-again/pypy/rpython/memory/gctransform/test
arigo at codespeak.net
arigo at codespeak.net
Fri Oct 5 19:05:30 CEST 2007
Author: arigo
Date: Fri Oct 5 19:05:29 2007
New Revision: 47198
Modified:
pypy/branch/kill-keepalives-again/pypy/rpython/memory/gctransform/test/test_transform.py
Log:
Arguments to the entry point function of GC tests cannot be
GC objects themselves, because nobody would put a proper
header on them.
Modified: pypy/branch/kill-keepalives-again/pypy/rpython/memory/gctransform/test/test_transform.py
==============================================================================
--- pypy/branch/kill-keepalives-again/pypy/rpython/memory/gctransform/test/test_transform.py (original)
+++ pypy/branch/kill-keepalives-again/pypy/rpython/memory/gctransform/test/test_transform.py Fri Oct 5 19:05:29 2007
@@ -22,6 +22,11 @@
cbuild = CStandaloneBuilder(t, f, t.config, gcpolicy=self.gcpolicy)
db = cbuild.generate_graphs_for_llinterp()
graph = cbuild.getentrypointptr()._obj.graph
+ # arguments cannot be GC objects because nobody would put a
+ # proper header on them
+ for v in graph.getargs():
+ if isinstance(v.concretetype, lltype.Ptr):
+ assert v.concretetype.TO._gckind != 'gc', "fix the test!"
llinterp = LLInterpreter(t.rtyper)
if conftest.option.view:
t.view()
More information about the pypy-svn
mailing list