[Lldb-commits] [lldb] [WIP][lldb][test] Add a layout simulator test for std::unique_ptr (PR #98330)

via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 10 07:49:32 PDT 2024


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 918ac62916d48649f224f8c54837d25baff97a08...a25b3c8a6a36326730d00d1060ff84181bece26e lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx-simulators/unique_ptr/TestDataFormatterLibcxxUniquePtrSimulator.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- TestDataFormatterLibcxxUniquePtrSimulator.py	2024-07-10 14:37:45.000000 +0000
+++ TestDataFormatterLibcxxUniquePtrSimulator.py	2024-07-10 14:49:09.903049 +0000
@@ -6,10 +6,11 @@
 import lldb
 from lldbsuite.test.decorators import *
 from lldbsuite.test.lldbtest import *
 from lldbsuite.test import lldbutil
 import functools
+
 
 class LibcxxUniquePtrDataFormatterSimulatorTestCase(TestBase):
     NO_DEBUG_INFO_TESTCASE = True
 
     def _run_test(self, defines):
@@ -18,13 +19,16 @@
         lldbutil.run_to_source_breakpoint(
             self, "// Break here", lldb.SBFileSpec("main.cpp")
         )
         self.expect("frame variable var_up", substrs=["pointer ="])
         self.expect("frame variable var_up", substrs=["deleter ="], matching=False)
-        self.expect("frame variable var_with_deleter_up", substrs=["pointer =", "deleter ="])
+        self.expect(
+            "frame variable var_with_deleter_up", substrs=["pointer =", "deleter ="]
+        )
 
-#for r in range(3):
+
+# for r in range(3):
 for r in range(1):
     name = "test_r%d" % r
     defines = ["COMPRESSED_PAIR_REV=%d" % r]
     f = functools.partialmethod(
         LibcxxUniquePtrDataFormatterSimulatorTestCase._run_test, defines

``````````

</details>


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


More information about the lldb-commits mailing list