[llvm-branch-commits] libcxx: In gdb test detect execute_mi with feature check instead of version check. (PR #132291)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Mar 20 14:45:24 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r 46fb4c42cb77909ac86bfec701bfaca288eba33c...b4bcfb2ae2fd41636a7da4986b1da3da6cb31b60 libcxx/test/libcxx/gdb/gdb_pretty_printer_test.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- gdb_pretty_printer_test.py 2025-03-20 21:41:44.000000 +0000
+++ gdb_pretty_printer_test.py 2025-03-20 21:44:54.661141 +0000
@@ -28,11 +28,12 @@
# we get taken to our exit handler before we can look.
# Instead check that at least one test has been run by the time
# we exit.
has_run_tests = False
-has_execute_mi = 'execute_mi' in gdb.__dict__
+has_execute_mi = "execute_mi" in gdb.__dict__
+
class CheckResult(gdb.Command):
def __init__(self):
super(CheckResult, self).__init__("print_and_compare", gdb.COMMAND_DATA)
``````````
</details>
https://github.com/llvm/llvm-project/pull/132291
More information about the llvm-branch-commits
mailing list