Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b996e04f
Commit
b996e04f
authored
May 01, 2013
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #17712: Fix test_gdb failures on Ubuntu 13.04.
parent
1c0d8a7f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
22 deletions
+26
-22
Lib/test/test_gdb.py
Lib/test/test_gdb.py
+24
-22
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/test_gdb.py
View file @
b996e04f
...
...
@@ -142,30 +142,32 @@ class DebuggerTests(unittest.TestCase):
# Use "args" to invoke gdb, capturing stdout, stderr:
out
,
err
=
run_gdb
(
*
args
,
PYTHONHASHSEED
=
'0'
)
# Ignore some noise on stderr due to the pending breakpoint:
err
=
err
.
replace
(
'Function "%s" not defined.
\
n
'
%
breakpoint
,
''
)
# Ignore some other noise on stderr (http://bugs.python.org/issue8600)
err
=
err
.
replace
(
"warning: Unable to find libthread_db matching"
errlines
=
err
.
splitlines
()
unexpected_errlines
=
[]
# 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.
\
n
"
,
''
)
err
=
err
.
replace
(
"warning: Cannot initialize thread debugging"
" library: Debugger service failed
\
n
"
,
''
)
err
=
err
.
replace
(
'warning: Could not load shared library symbols for '
'linux-vdso.so.1.
\
n
'
" 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'
,
'Do you need "set solib-search-path" or '
'"set sysroot"?
\
n
'
,
''
)
err
=
err
.
replace
(
'warning: Could not load shared library symbols for '
'linux-gate.so.1.
\
n
'
'Do you need "set solib-search-path" or '
'"set sysroot"?
\
n
'
,
''
)
'"set sysroot"?'
,
)
for
line
in
errlines
:
if
not
line
.
startswith
(
ignore_patterns
):
unexpected_errlines
.
append
(
line
)
# Ensure no unexpected error messages:
self
.
assertEqual
(
err
,
''
)
self
.
assertEqual
(
unexpected_errlines
,
[])
return
out
def
get_gdb_repr
(
self
,
source
,
...
...
Misc/NEWS
View file @
b996e04f
...
...
@@ -76,6 +76,8 @@ Library
Tests
-----
- Issue #17712: Fix test_gdb failures on Ubuntu 13.04.
- Issue #17065: Use process-unique key for winreg tests to avoid failures if
test is run multiple times in parallel (eg: on a buildbot host).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment