Skip to content

Commit 8420cd2

Browse files
committed
Backport test_gdb fixes for s390x buildbots
1 parent 4e1e30d commit 8420cd2

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

Lib/test/test_gdb.py

+7-17
Original file line numberDiff line numberDiff line change
@@ -203,27 +203,17 @@ def get_stack_trace(self, source=None, script=None,
203203
# Ignore some benign messages on stderr.
204204
ignore_patterns = (
205205
'Function "%s" not defined.' % breakpoint,
206-
"warning: no loadable sections found in added symbol-file"
207-
" system-supplied DSO",
208-
"warning: Unable to find libthread_db matching"
209-
" inferior's thread library, thread debugging will"
210-
" not be available.",
211-
"warning: Cannot initialize thread debugging"
212-
" library: Debugger service failed",
213-
'warning: Could not load shared library symbols for '
214-
'linux-vdso.so',
215-
'warning: Could not load shared library symbols for '
216-
'linux-gate.so',
217-
'warning: Could not load shared library symbols for '
218-
'linux-vdso64.so',
219206
'Do you need "set solib-search-path" or '
220207
'"set sysroot"?',
221-
'warning: Source file is more recent than executable.',
222-
# Issue #19753: missing symbols on System Z
223-
'Missing separate debuginfo for ',
224-
'Try: zypper install -C ',
208+
# BFD: /usr/lib/debug/(...): unable to initialize decompress
209+
# status for section .debug_aranges
210+
'BFD: ',
211+
# ignore all warnings
212+
'warning: ',
225213
)
226214
for line in errlines:
215+
if not line:
216+
continue
227217
if not line.startswith(ignore_patterns):
228218
unexpected_errlines.append(line)
229219

0 commit comments

Comments
 (0)