[all-commits] [llvm/llvm-project] 94d823: [LLDB] Mark TestCallStdStringFunction as XPASS on ...

nerix via All-commits all-commits at lists.llvm.org
Thu Jul 3 02:12:45 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 94d8231578272ead668bb95f8cb9c3ff5ee15aa6
      https://github.com/llvm/llvm-project/commit/94d8231578272ead668bb95f8cb9c3ff5ee15aa6
  Author: nerix <nerixdev at outlook.de>
  Date:   2025-07-03 (Thu, 03 Jul 2025)

  Changed paths:
    M lldb/test/API/commands/expression/call-function/TestCallStdStringFunction.py

  Log Message:
  -----------
  [LLDB] Mark TestCallStdStringFunction as XPASS on Windows (#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.

Relates to https://github.com/llvm/llvm-project/issues/22139



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list