Commit 254a3772 authored by Nick Coghlan's avatar Nick Coghlan

This check can still fail on RHEL6

parent 60bf0e4d
...@@ -53,13 +53,13 @@ gdbpy_version, _ = run_gdb("--eval-command=python import sys; print sys.version_ ...@@ -53,13 +53,13 @@ gdbpy_version, _ = run_gdb("--eval-command=python import sys; print sys.version_
if not gdbpy_version: if not gdbpy_version:
raise unittest.SkipTest("gdb not built with embedded python support") raise unittest.SkipTest("gdb not built with embedded python support")
# Verify that "gdb" can load our custom hooks. In theory this should never # Verify that "gdb" can load our custom hooks, as OS security settings may
# fail, but we don't handle the case of the hooks file not existing if the # disallow this without a customised .gdbinit.
# tests are run from an installed Python (we'll produce failures in that case).
cmd = ['--args', sys.executable] cmd = ['--args', sys.executable]
_, gdbpy_errors = run_gdb('--args', sys.executable) _, gdbpy_errors = run_gdb('--args', sys.executable)
if "auto-loading has been declined" in gdbpy_errors: if "auto-loading has been declined" in gdbpy_errors:
msg = "gdb security settings prevent use of custom hooks: " msg = "gdb security settings prevent use of custom hooks: "
raise unittest.SkipTest(msg + gdbpy_errors.rstrip())
def python_is_optimized(): def python_is_optimized():
cflags = sysconfig.get_config_vars()['PY_CFLAGS'] cflags = sysconfig.get_config_vars()['PY_CFLAGS']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment