]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport test_gdb fix for s390x buildbots
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 19 Apr 2016 22:30:14 +0000 (00:30 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 19 Apr 2016 22:30:14 +0000 (00:30 +0200)
Lib/test/test_gdb.py

index 78fc55c2f204d0600ba279794a4b34327edda8fe..cd7d2925f47c31cd58c820f1a4a63f373c3a2259 100644 (file)
@@ -198,27 +198,17 @@ class DebuggerTests(unittest.TestCase):
         # Ignore some benign messages on stderr.
         ignore_patterns = (
             'Function "%s" not defined.' % breakpoint,
-            "warning: no loadable sections found in added symbol-file"
-            " system-supplied DSO",
-            "warning: Unable to find libthread_db matching"
-            " inferior's thread library, thread debugging will"
-            " not be available.",
-            "warning: Cannot initialize thread debugging"
-            " library: Debugger service failed",
-            'warning: Could not load shared library symbols for '
-            'linux-vdso.so',
-            'warning: Could not load shared library symbols for '
-            'linux-gate.so',
-            'warning: Could not load shared library symbols for '
-            'linux-vdso64.so',
             'Do you need "set solib-search-path" or '
             '"set sysroot"?',
-            'warning: Source file is more recent than executable.',
-            # Issue #19753: missing symbols on System Z
-            'Missing separate debuginfo for ',
-            'Try: zypper install -C ',
+            # BFD: /usr/lib/debug/(...): unable to initialize decompress
+            # status for section .debug_aranges
+            'BFD: ',
+            # ignore all warnings
+            'warning: ',
             )
         for line in errlines:
+            if not line:
+                continue
             if not line.startswith(ignore_patterns):
                 unexpected_errlines.append(line)