[pypy-commit] pypy kill-someobject: Ah ah, we can get 'Aborted (core dumped)' too. General fix.

arigo noreply at buildbot.pypy.org
Fri Oct 12 18:22:27 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: kill-someobject
Changeset: r58070:077647c293a7
Date: 2012-10-12 18:22 +0200
http://bitbucket.org/pypy/pypy/changeset/077647c293a7/

Log:	Ah ah, we can get 'Aborted (core dumped)' too. General fix.

diff --git a/pypy/translator/c/test/test_genc.py b/pypy/translator/c/test/test_genc.py
--- a/pypy/translator/c/test/test_genc.py
+++ b/pypy/translator/c/test/test_genc.py
@@ -138,10 +138,8 @@
             print '--------------'
             stderr, prevline, lastline, empty = stderr.rsplit('\n', 3)
             assert empty == ''
-            if lastline == 'Aborted':
-                lastline = prevline
-            assert lastline == ('Fatal RPython error: ' +
-                                expected_exception_name)
+            expected = 'Fatal RPython error: ' + expected_exception_name
+            assert lastline == expected or prevline == expected
             return None
 
         output(stdout)


More information about the pypy-commit mailing list