[Lldb-commits] [lldb] 19f604e - [lldb][test] Add test for printing std::string through expression evaluator
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 11 00:58:21 PDT 2024
Author: Michael Buch
Date: 2024-09-11T08:58:03+01:00
New Revision: 19f604edfc015b35999b3b95e94f18389e4b392d
URL: https://github.com/llvm/llvm-project/commit/19f604edfc015b35999b3b95e94f18389e4b392d
DIFF: https://github.com/llvm/llvm-project/commit/19f604edfc015b35999b3b95e94f18389e4b392d.diff
LOG: [lldb][test] Add test for printing std::string through expression evaluator
This would've caught the failures in
https://github.com/llvm/llvm-project/pull/105865 in the libc++
data-formatter CI.
Added:
Modified:
lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py
Removed:
################################################################################
diff --git a/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py b/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py
index 98438742a11ca6..6b5bcf8a7df2f3 100644
--- a/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py
+++ b/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py
@@ -100,6 +100,16 @@ def cleanup():
"s", result_type=ns + "::wstring", result_summary='L"hello world! מזל טוב!"'
)
+ self.expect_expr(
+ "q", result_type=ns + "::string", result_summary='"hello world"'
+ )
+
+ self.expect_expr(
+ "Q",
+ result_type=ns + "::string",
+ result_summary='"quite a long std::strin with lots of info inside it"',
+ )
+
self.expect(
"frame variable",
substrs=[
More information about the lldb-commits
mailing list