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
64b4a3a2
Commit
64b4a3a2
authored
Sep 26, 2019
by
Victor Stinner
Committed by
GitHub
Sep 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-38239: Fix test_gdb for Link Time Optimization (LTO) (GH-16422)
parent
12f2f177
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
Lib/test/test_gdb.py
Lib/test/test_gdb.py
+9
-2
Misc/NEWS.d/next/Tests/2019-09-26-15-48-36.bpo-38239.MfoVzY.rst
...EWS.d/next/Tests/2019-09-26-15-48-36.bpo-38239.MfoVzY.rst
+1
-0
No files found.
Lib/test/test_gdb.py
View file @
64b4a3a2
...
@@ -255,8 +255,15 @@ class DebuggerTests(unittest.TestCase):
...
@@ -255,8 +255,15 @@ class DebuggerTests(unittest.TestCase):
# gdb can insert additional '
\
n
' and space characters in various places
# gdb can insert additional '
\
n
' and space characters in various places
# in its output, depending on the width of the terminal it's connected
# in its output, depending on the width of the terminal it's connected
# to (using its "
wrap_here
" function)
# to (using its "
wrap_here
" function)
m = re.match(r'.*#0
\
s+
b
uiltin_id
\
s+
\
(self
\
=.*,
\
s+v=
\
s*(.*?)?
\
)
\
s+
a
t
\
s+
\
S*Python/bltinmodule.c.*',
m = re.search(
gdb_output, re.DOTALL)
# Match '#0 builtin_id(self=..., v=...)'
r'#0
\
s+
b
uiltin_id
\
s+
\
(self
\
=.*,
\
s+v=
\
s*(.*?)?
\
)'
# Match ' at Python/bltinmodule.c'.
# bpo-38239: builtin_id() is defined in Python/bltinmodule.c,
# but accept any "
Directory
\
file
.
c
" to support Link Time
# Optimization (LTO).
r'
\
s+
a
t
\
s+
\
S*[A-Za-z]+/[A-Za-z0-9_-]+
\
.c
'
,
gdb_output, re.DOTALL)
if not m:
if not m:
self.fail('Unexpected gdb output: %r
\
n
%s' % (gdb_output, gdb_output))
self.fail('Unexpected gdb output: %r
\
n
%s' % (gdb_output, gdb_output))
return m.group(1), gdb_output
return m.group(1), gdb_output
...
...
Misc/NEWS.d/next/Tests/2019-09-26-15-48-36.bpo-38239.MfoVzY.rst
0 → 100644
View file @
64b4a3a2
Fix test_gdb for Link Time Optimization (LTO) builds.
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