]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-110166: Fix gdb CFunctionFullTests on ppc64le clang build (#110331)
authorVictor Stinner <vstinner@python.org>
Wed, 4 Oct 2023 08:57:35 +0000 (10:57 +0200)
committerGitHub <noreply@github.com>
Wed, 4 Oct 2023 08:57:35 +0000 (08:57 +0000)
CFunctionFullTests now also runs "bt" command before "py-bt-full",
similar to CFunctionTests which also runs "bt" command before
"py-bt". So test_gdb can skip the test if patterns like "?? ()" are
found in the gdb output.

Lib/test/test_gdb/test_cfunction_full.py

index 3e90cb1d392f49eeb96249b04dedf006811b8a64..572cbdab5d77c0594631017b17cec311f02b05c7 100644 (file)
@@ -18,7 +18,7 @@ class CFunctionFullTests(CFunctionTests):
         gdb_output = self.get_stack_trace(
             cmd,
             breakpoint=func_name,
-            cmds_after_breakpoint=['py-bt-full'],
+            cmds_after_breakpoint=['bt', 'py-bt-full'],
             # bpo-45207: Ignore 'Function "meth_varargs" not
             # defined.' message in stderr.
             ignore_stderr=True,