[Lldb-commits] [lldb] [lldb][breakpoint] Grey out disabled breakpoints (PR #91404)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Nov 5 05:23:40 PST 2024


================
@@ -0,0 +1,32 @@
+"""
+Test that disabling breakpoints and viewing them in a list uses the correct ANSI color settings when colors are enabled and disabled.
+"""
+import lldb
+from lldbsuite.test.decorators import *
+from lldbsuite.test.lldbtest import *
+from lldbsuite.test import lldbutil
+from lldbsuite.test.lldbpexpect import PExpectTest
+
+import re
+import io
+
+
+class DisabledBreakpointsTest(PExpectTest):
+    @add_test_categories(["pexpect"])
+    def test_disabling_breakpoints_with_color(self):
+        """Test that disabling a breakpoint and viewing the breakpoints list uses the specified ANSI color prefix."""
+        import pexpect
+
+        self.child = pexpect.spawn("expect", encoding="utf-8")
+
----------------
labath wrote:

I'm pretty sure this was doing nothing as `self.launch` overwrites the `child` member. I recall we have one test which uses `pexpect` (the python module) to drive `expect` (the unix utility which lent its name to the former) to drive `lldb`. We definitely don't need that here (and tbh, I'm not sure the original test does either).

https://github.com/llvm/llvm-project/pull/91404


More information about the lldb-commits mailing list