mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Issue #17712: Fix test_gdb failures on Ubuntu 13.04.
This commit is contained in:
parent
aa54e2ff5e
commit
81641d6ebc
2 changed files with 26 additions and 21 deletions
|
@ -145,29 +145,32 @@ class DebuggerTests(unittest.TestCase):
|
||||||
# Use "args" to invoke gdb, capturing stdout, stderr:
|
# Use "args" to invoke gdb, capturing stdout, stderr:
|
||||||
out, err = run_gdb(*args, PYTHONHASHSEED='0')
|
out, err = run_gdb(*args, PYTHONHASHSEED='0')
|
||||||
|
|
||||||
# Ignore some noise on stderr due to the pending breakpoint:
|
errlines = err.splitlines()
|
||||||
err = err.replace('Function "%s" not defined.\n' % breakpoint, '')
|
unexpected_errlines = []
|
||||||
# Ignore some other noise on stderr (http://bugs.python.org/issue8600)
|
|
||||||
err = err.replace("warning: Unable to find libthread_db matching"
|
# 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"
|
" inferior's thread library, thread debugging will"
|
||||||
" not be available.\n",
|
" not be available.",
|
||||||
'')
|
"warning: Cannot initialize thread debugging"
|
||||||
err = err.replace("warning: Cannot initialize thread debugging"
|
" library: Debugger service failed",
|
||||||
" library: Debugger service failed\n",
|
'warning: Could not load shared library symbols for '
|
||||||
'')
|
'linux-vdso.so',
|
||||||
err = err.replace('warning: Could not load shared library symbols for '
|
'warning: Could not load shared library symbols for '
|
||||||
'linux-vdso.so.1.\n'
|
'linux-gate.so',
|
||||||
'Do you need "set solib-search-path" or '
|
'Do you need "set solib-search-path" or '
|
||||||
'"set sysroot"?\n',
|
'"set sysroot"?',
|
||||||
'')
|
)
|
||||||
err = err.replace('warning: Could not load shared library symbols for '
|
for line in errlines:
|
||||||
'linux-gate.so.1.\n'
|
if not line.startswith(ignore_patterns):
|
||||||
'Do you need "set solib-search-path" or '
|
unexpected_errlines.append(line)
|
||||||
'"set sysroot"?\n',
|
|
||||||
'')
|
|
||||||
|
|
||||||
# Ensure no unexpected error messages:
|
# Ensure no unexpected error messages:
|
||||||
self.assertEqual(err, '')
|
self.assertEqual(unexpected_errlines, [])
|
||||||
return out
|
return out
|
||||||
|
|
||||||
def get_gdb_repr(self, source,
|
def get_gdb_repr(self, source,
|
||||||
|
|
|
@ -147,6 +147,8 @@ IDLE
|
||||||
Tests
|
Tests
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
- Issue #17712: Fix test_gdb failures on Ubuntu 13.04.
|
||||||
|
|
||||||
- Issue #17835: Fix test_io when the default OS pipe buffer size is larger
|
- Issue #17835: Fix test_io when the default OS pipe buffer size is larger
|
||||||
than one million bytes.
|
than one million bytes.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue