From: Victor Stinner Date: Wed, 4 Oct 2023 08:57:35 +0000 (+0200) Subject: gh-110166: Fix gdb CFunctionFullTests on ppc64le clang build (#110331) X-Git-Tag: v3.13.0a1~150 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1de9406f9136e3952b849487f0151be3c669a3ea;p=thirdparty%2FPython%2Fcpython.git gh-110166: Fix gdb CFunctionFullTests on ppc64le clang build (#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. --- diff --git a/Lib/test/test_gdb/test_cfunction_full.py b/Lib/test/test_gdb/test_cfunction_full.py index 3e90cb1d392f..572cbdab5d77 100644 --- a/Lib/test/test_gdb/test_cfunction_full.py +++ b/Lib/test/test_gdb/test_cfunction_full.py @@ -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,