Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r90335:c5721c39a21f Date: 2017-02-24 08:39 +0100 http://bitbucket.org/pypy/pypy/changeset/c5721c39a21f/
Log: fix test on my laptop 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 @@ -1730,7 +1730,11 @@ (ulimitv, ' '.join(args),)] popen = subprocess.Popen(args1, stderr=subprocess.PIPE) _, child_stderr = popen.communicate() - assert popen.wait() == 134 # aborted + assert popen.wait() in (-6, 134) # aborted + # note: it seems that on some systems we get 134 and on + # others we get -6. Bash is supposed to translate the + # SIGABRT (signal 6) from the subprocess into the exit + # code 128+6, but I guess it may not always do so. assert 'out of memory:' in child_stderr return '42' # _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit