Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r90641:de9b0ab9954a Date: 2017-03-12 19:07 +0100 http://bitbucket.org/pypy/pypy/changeset/de9b0ab9954a/
Log: Add lldebug=True to two compilation tests. This avoids the errors we get with ``gcc -flto`` on Linux, at least with gcc versions 6.2.0 and 6.3.1. diff --git a/pypy/sandbox/test/test_pypy_interact.py b/pypy/sandbox/test/test_pypy_interact.py --- a/pypy/sandbox/test/test_pypy_interact.py +++ b/pypy/sandbox/test/test_pypy_interact.py @@ -74,7 +74,8 @@ def setup_module(mod): - t = Translation(mini_pypy_like_entry_point, backend='c', sandbox=True) + t = Translation(mini_pypy_like_entry_point, backend='c', sandbox=True, + lldebug=True) mod.executable = str(t.compile()) diff --git a/rpython/translator/sandbox/test/test_sandbox.py b/rpython/translator/sandbox/test/test_sandbox.py --- a/rpython/translator/sandbox/test/test_sandbox.py +++ b/rpython/translator/sandbox/test/test_sandbox.py @@ -37,9 +37,9 @@ write_message(g, result, resulttype) g.flush() -def compile(f, gc='ref'): +def compile(f, gc='ref', **kwds): t = Translation(f, backend='c', sandbox=True, gc=gc, - check_str_without_nul=True) + check_str_without_nul=True, **kwds) return str(t.compile()) def run_in_subprocess(exe): @@ -198,7 +198,7 @@ l.append("x" * int(argv[2])) return int(len(l) > 1000) - exe = compile(entry_point, gc='hybrid') + exe = compile(entry_point, gc='hybrid', lldebug=True) pipe = subprocess.Popen([exe, '10', '10000'], stdout=subprocess.PIPE, stdin=subprocess.PIPE) g = pipe.stdin _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit