[Lldb-commits] [lldb] [LLDB][SaveCore] Add SBCoreDumpOptions Object, and SBProcess::SaveCore() overload (PR #98403)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 17 14:10:43 PDT 2024


================
@@ -0,0 +1,25 @@
+"""Test the SBCoreDumpOptions APIs."""
+
+import lldb
+from lldbsuite.test.decorators import *
+from lldbsuite.test.lldbtest import *
+
+
+class SBCoreDumpOptionsAPICase(TestBase):
+    def test_plugin_name_assignment(self):
+        """Test"""
+        options = lldb.SBCoreDumpOptions()
+        error = options.SetPluginName(None)
+        self.assertTrue(error.Fail())
----------------
clayborg wrote:

This shouldn't fail, setting it to None clears the setting. So this test should probably set it to something valid first, like "minidump", verify you get that name back, then set it to None, verify you get None back.

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


More information about the lldb-commits mailing list