[Lldb-commits] [lldb] [lldb] Reduce output of TestDataFormatterStdVBool (PR #206444)
Felipe de Azevedo Piovezan via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 29 03:00:30 PDT 2026
https://github.com/felipepiovezan created https://github.com/llvm/llvm-project/pull/206444
Tests should not be printing an unbounded amount of data, especially when said data is the subject of corruption or misinterpretation by the printer (the formatter, in this case).
This test is currently failing on the matrix bots, with the result that close to 3GB of text is produced.
>From 3c5bef9e2a5ecb923737e6f2376e5771d9aac8ee Mon Sep 17 00:00:00 2001
From: Felipe de Azevedo Piovezan <fpiovezan at apple.com>
Date: Mon, 29 Jun 2026 10:57:41 +0100
Subject: [PATCH] [lldb] Reduce output of TestDataFormatterStdVBool
Tests should not be printing an unbounded amount of data, especially
when said data is the subject of corruption or misinterpretation by the
printer (the formatter, in this case).
This test is currently failing on the matrix bots, with the result that
close to 3GB of text is produced.
---
.../generic/vbool/TestDataFormatterStdVBool.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/vbool/TestDataFormatterStdVBool.py b/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/vbool/TestDataFormatterStdVBool.py
index 3145f4e9bab76..5bcc010c763ba 100644
--- a/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/vbool/TestDataFormatterStdVBool.py
+++ b/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/vbool/TestDataFormatterStdVBool.py
@@ -44,11 +44,12 @@ def cleanup():
self.runCmd("type synth clear", check=False)
self.runCmd("settings set target.max-children-count 24", check=False)
+ self.runCmd("settings set target.max-children-count 128", check=False)
# Execute the cleanup function during test case tear down.
self.addTearDownHook(cleanup)
self.expect(
- "frame variable -A vBool",
+ "frame variable vBool",
substrs=[
"size=73",
"[0] = false",
@@ -69,7 +70,7 @@ def cleanup():
)
self.expect(
- "expr -A -- vBool",
+ "expr -- vBool",
substrs=[
"size=73",
"[0] = false",
More information about the lldb-commits
mailing list