diff options
author | Steve Dower <steve.dower@python.org> | 2019-05-24 20:00:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-24 20:00:04 (GMT) |
commit | 6de4574c6393b9cf8d7dfb0dc6ce53ee5b9ea841 (patch) | |
tree | 49c81c60d0d2bb47c10c60eea84ba1b92e8b6ea2 /Lib/test/test_gdb.py | |
parent | 14738ff83d852c95a0cf33e5c90a85860a9c5620 (diff) | |
download | cpython-6de4574c6393b9cf8d7dfb0dc6ce53ee5b9ea841.zip cpython-6de4574c6393b9cf8d7dfb0dc6ce53ee5b9ea841.tar.gz cpython-6de4574c6393b9cf8d7dfb0dc6ce53ee5b9ea841.tar.bz2 |
bpo-37023: Skip test_gdb under PGO (GH-13555)
Diffstat (limited to 'Lib/test/test_gdb.py')
-rw-r--r-- | Lib/test/test_gdb.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py index 4d1ce4e..dbcb598 100644 --- a/Lib/test/test_gdb.py +++ b/Lib/test/test_gdb.py @@ -52,6 +52,10 @@ if 'Clang' in platform.python_compiler() and sys.platform == 'darwin': raise unittest.SkipTest("test_gdb doesn't work correctly when python is" " built with LLVM clang") +if ((sysconfig.get_config_var('PGO_PROF_USE_FLAG') or 'xxx') in + (sysconfig.get_config_var('PY_CORE_CFLAGS') or '')): + raise unittest.SkipTest("test_gdb is not reliable on PGO builds") + # Location of custom hooks file in a repository checkout. checkout_hook_path = os.path.join(os.path.dirname(sys.executable), 'python-gdb.py') @@ -272,7 +276,7 @@ class DebuggerTests(unittest.TestCase): # gdb can insert additional '\n' and space characters in various places # in its output, depending on the width of the terminal it's connected # to (using its "wrap_here" function) - m = re.match(r'.*#0\s+builtin_id\s+\(self\=.*,\s+v=\s*(.*?)\)\s+at\s+\S*Python/bltinmodule.c.*', + m = re.match(r'.*#0\s+builtin_id\s+\(self\=.*,\s+v=\s*(.*?)?\)\s+at\s+\S*Python/bltinmodule.c.*', gdb_output, re.DOTALL) if not m: self.fail('Unexpected gdb output: %r\n%s' % (gdb_output, gdb_output)) |