Skip to content

Commit 19f604e

Browse files
committed
[lldb][test] Add test for printing std::string through expression evaluator
This would've caught the failures in llvm#105865 in the libc++ data-formatter CI.
1 parent 1e3a24d commit 19f604e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py

+10
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,16 @@ def cleanup():
100100
"s", result_type=ns + "::wstring", result_summary='L"hello world! מזל טוב!"'
101101
)
102102

103+
self.expect_expr(
104+
"q", result_type=ns + "::string", result_summary='"hello world"'
105+
)
106+
107+
self.expect_expr(
108+
"Q",
109+
result_type=ns + "::string",
110+
result_summary='"quite a long std::strin with lots of info inside it"',
111+
)
112+
103113
self.expect(
104114
"frame variable",
105115
substrs=[

0 commit comments

Comments
 (0)