https://github.com/Nerixyz created https://github.com/llvm/llvm-project/pull/146835
#146562 made [TestCallStdStringFunction](https://github.com/llvm/llvm-project/blob/bd6cd92984e7a30cb91e4f069a0bacc5c582a234/lldb/test/API/commands/expression/call-function/TestCallStdStringFunction.py) unexpectedly pass on Windows. The test now passes, because `expression str` now prints the "raw" string object, which happens to include the string "Hello world". Previously, this resulted in an error: ``` (lldb) expression str (std::string) $0 = { _Mypair = { _Myval2 = { _Bx = (_Buf = "Hello world", _Ptr = "", _Alias = "Hello world") _Mysize = 11 _Myres = 15 } } } (lldb) type summary add std::string --summary-string "${var._M_dataplus._M_p}" ^^^ previous summary ^^^ (lldb) expression str (std::string) $1 = error: summary string parsing error ``` #143177 will eventually add the correct summary for MSVC STL strings. >From d0616525e41e1c6dc1261f04eab3e5a97ca510e0 Mon Sep 17 00:00:00 2001 From: Nerixyz <nerix...@outlook.de> Date: Thu, 3 Jul 2025 10:47:07 +0200 Subject: [PATCH] [LLDB] Mark TestCallStdStringFunction as XPASS on Windows --- .../expression/call-function/TestCallStdStringFunction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/test/API/commands/expression/call-function/TestCallStdStringFunction.py b/lldb/test/API/commands/expression/call-function/TestCallStdStringFunction.py index ca2d2d0177eec..bb352b787d72f 100644 --- a/lldb/test/API/commands/expression/call-function/TestCallStdStringFunction.py +++ b/lldb/test/API/commands/expression/call-function/TestCallStdStringFunction.py @@ -9,10 +9,10 @@ class ExprCommandCallFunctionTestCase(TestBase): + @expectedFailureAll( compiler="icc", bugnumber="llvm.org/pr14437, fails with ICC 13.1" ) - @expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr21765") @skipIf(compiler="clang", compiler_version=["<", "9.0"]) def test_with(self): """Test calling std::String member function.""" _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits