[pypy-commit] pypy reverse-debugger: Improve the test. Now it correctly fails if we comment out
arigo
pypy.commits at gmail.com
Sun Jul 10 12:58:25 EDT 2016
Author: Armin Rigo <arigo at tunes.org>
Branch: reverse-debugger
Changeset: r85648:f516429f49f3
Date: 2016-07-10 18:59 +0200
http://bitbucket.org/pypy/pypy/changeset/f516429f49f3/
Log: Improve the test. Now it correctly fails if we comment out "#define
HAVE_PERSONALITY".
diff --git a/rpython/translator/revdb/test/test_basic.py b/rpython/translator/revdb/test/test_basic.py
--- a/rpython/translator/revdb/test/test_basic.py
+++ b/rpython/translator/revdb/test/test_basic.py
@@ -97,12 +97,13 @@
def compile(self, entry_point, backendopt=True,
- withsmallfuncsets=None):
+ withsmallfuncsets=None, shared=False):
t = Translation(entry_point, None, gc="boehm")
self.t = t
t.set_backend_extra_options(c_debug_defines=True)
t.config.translation.reverse_debugger = True
t.config.translation.lldebug0 = True
+ t.config.translation.shared = shared
if withsmallfuncsets is not None:
t.config.translation.withsmallfuncsets = withsmallfuncsets
if not backendopt:
diff --git a/rpython/translator/revdb/test/test_raw.py b/rpython/translator/revdb/test/test_raw.py
--- a/rpython/translator/revdb/test/test_raw.py
+++ b/rpython/translator/revdb/test/test_raw.py
@@ -65,7 +65,7 @@
revdb.stop_point()
return 9
- compile(cls, main, backendopt=False)
+ compile(cls, main, backendopt=False, shared=True)
run(cls, '')
rdb = fetch_rdb(cls, [cls.exename])
#assert len(rdb.rdb_struct) >= 4
More information about the pypy-commit
mailing list