[Lldb-commits] [lldb] [lldb][test] Split out libc++ std::string tests that check corrupted strings (PR #147252)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Mon Jul 7 01:42:17 PDT 2025
================
@@ -0,0 +1,39 @@
+"""
+Test lldb behaves sanely when formatting corrupted `std::string`s.
+"""
+
+import lldb
+from lldbsuite.test.decorators import *
+from lldbsuite.test.lldbtest import *
+from lldbsuite.test import lldbutil
+
+
+class LibcxxInvalidStringDataFormatterTestCase(TestBase):
+ @add_test_categories(["libc++"])
+ @skipUnlessDarwin
+ @skipIf(archs=no_match(["arm"]))
+ def test(self):
+ self.build()
+
+ (target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(
+ self, "Set break point at this line.", lldb.SBFileSpec("main.cpp")
+ )
+ frame = thread.frames[0]
+
+ if not self.process().GetAddressByteSize() == 8:
+ self.skip()
----------------
Michael137 wrote:
Should probably just adjust the "archs" check to "arm64", instead of checking address size
https://github.com/llvm/llvm-project/pull/147252
More information about the lldb-commits
mailing list