Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0d88c65

Browse files
committed
Backport test_gdb fix for s390x buildbots
1 parent b5d164c commit 0d88c65

1 file changed

Lines changed: 7 additions & 17 deletions

File tree

Lib/test/test_gdb.py

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -198,27 +198,17 @@ def get_stack_trace(self, source=None, script=None,
198198
# Ignore some benign messages on stderr.
199199
ignore_patterns = (
200200
'Function "%s" not defined.' % breakpoint,
201-
"warning: no loadable sections found in added symbol-file"
202-
" system-supplied DSO",
203-
"warning: Unable to find libthread_db matching"
204-
" inferior's thread library, thread debugging will"
205-
" not be available.",
206-
"warning: Cannot initialize thread debugging"
207-
" library: Debugger service failed",
208-
'warning: Could not load shared library symbols for '
209-
'linux-vdso.so',
210-
'warning: Could not load shared library symbols for '
211-
'linux-gate.so',
212-
'warning: Could not load shared library symbols for '
213-
'linux-vdso64.so',
214201
'Do you need "set solib-search-path" or '
215202
'"set sysroot"?',
216-
'warning: Source file is more recent than executable.',
217-
# Issue #19753: missing symbols on System Z
218-
'Missing separate debuginfo for ',
219-
'Try: zypper install -C ',
203+
# BFD: /usr/lib/debug/(...): unable to initialize decompress
204+
# status for section .debug_aranges
205+
'BFD: ',
206+
# ignore all warnings
207+
'warning: ',
220208
)
221209
for line in errlines:
210+
if not line:
211+
continue
222212
if not line.startswith(ignore_patterns):
223213
unexpected_errlines.append(line)
224214

0 commit comments

Comments
 (0)