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
a0933128
Commit
a0933128
authored
Jun 17, 2012
by
Nick Coghlan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #15043: skip test_gdb if the custom hooks can't be loaded (backport from 3.x)
parent
970fcef8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
Lib/test/test_gdb.py
Lib/test/test_gdb.py
+9
-0
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_gdb.py
View file @
a0933128
...
...
@@ -32,6 +32,15 @@ gdbpy_version, _ = p.communicate()
if gdbpy_version == '':
raise unittest.SkipTest("gdb not built with embedded python support")
# Verify that "gdb" can load our custom hooks
p = subprocess.Popen(["gdb", "--batch", cmd,
"--args", sys.executable],
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
__, gdbpy_errors = p.communicate()
if b"auto-loading has been declined" in gdbpy_errors:
msg = "gdb security settings prevent use of custom hooks: %s"
raise unittest.SkipTest(msg % gdbpy_errors)
def python_is_optimized():
cflags = sysconfig.get_config_vars()['
PY_CFLAGS
']
final_opt = ""
...
...
Misc/NEWS
View file @
a0933128
...
...
@@ -227,6 +227,9 @@ Library
Tests
-----
- Issue #15043: test_gdb is now skipped entirely if gdb security settings
block loading of the gdb hooks
- Issue #14589: Update certificate chain for sha256.tbs-internet.com, fixing
a test failure in test_ssl.
...
...
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