Skip to content

Commit

Permalink
pythongh-110166: Fix gdb CFunctionFullTests on ppc64le clang build (p…
Browse files Browse the repository at this point in the history
…ython#110331)

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.

(cherry picked from commit 1de9406)
  • Loading branch information
vstinner committed Oct 4, 2023
1 parent 5ead95a commit 8a305ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_gdb/test_cfunction_full.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def check(self, func_name, cmd):
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,
Expand Down

0 comments on commit 8a305ef

Please sign in to comment.