[Lldb-commits] [lldb] Default transcript dumping in "statistics dump" to false (PR #145436)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Jun 25 11:46:34 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 HEAD~1...HEAD lldb/test/API/commands/statistics/basic/TestStats.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- TestStats.py 2025-06-25 18:44:14.000000 +0000
+++ TestStats.py 2025-06-25 18:46:07.314101 +0000
@@ -855,24 +855,24 @@
transcript saving is disabled.
"""
self.build()
exe = self.getBuildArtifact("a.out")
target = self.createTestTarget(file_path=exe)
-
+
# Ensure transcript saving is disabled (this is the default)
self.runCmd("settings set interpreter.save-transcript false")
-
+
# Request transcript in statistics dump and check for warning
interpreter = self.dbg.GetCommandInterpreter()
res = lldb.SBCommandReturnObject()
interpreter.HandleCommand("statistics dump --transcript=true", res)
self.assertTrue(res.Succeeded())
# We should warn about transcript being requested but not saved
self.assertIn(
"transcript requested but none was saved. Enable with "
"'settings set interpreter.save-transcript true'",
- res.GetError()
+ res.GetError(),
)
def verify_stats(self, stats, expectation, options):
for field_name in expectation:
idx = field_name.find(".")
``````````
</details>
https://github.com/llvm/llvm-project/pull/145436
More information about the lldb-commits
mailing list