[pypy-commit] pypy refactor-translator: Fix rpython/translator/c/test/test_newgc.py.
Manuel Jacob
noreply at buildbot.pypy.org
Fri Mar 1 18:07:41 CET 2013
Author: Manuel Jacob
Branch: refactor-translator
Changeset: r61892:0ad97e3b96ef
Date: 2013-02-27 17:04 +0100
http://bitbucket.org/pypy/pypy/changeset/0ad97e3b96ef/
Log: Fix rpython/translator/c/test/test_newgc.py.
diff --git a/rpython/translator/c/test/test_newgc.py b/rpython/translator/c/test/test_newgc.py
--- a/rpython/translator/c/test/test_newgc.py
+++ b/rpython/translator/c/test/test_newgc.py
@@ -43,9 +43,9 @@
t = Translation(main, gc=cls.gcpolicy,
taggedpointers=cls.taggedpointers,
- gcremovetypeptr=cls.removetypeptr)
- t.disable(['backendopt'])
- t.set_backend_extra_options(c_debug_defines=True)
+ gcremovetypeptr=cls.removetypeptr,
+ **{'backendopt.none': True})
+ t.set_backend_extra_options({'c_debug_defines': True})
t.rtype()
if option.view:
t.viewcg()
diff --git a/rpython/translator/driver.py b/rpython/translator/driver.py
--- a/rpython/translator/driver.py
+++ b/rpython/translator/driver.py
@@ -108,6 +108,7 @@
self.create_exe()
else:
self.driver.c_entryp = cbuilder.get_entry_point()
+ return self.driver.c_entryp
def create_exe(self):
""" Copy the compiled executable into translator/goal
More information about the pypy-commit
mailing list