[lldb] Fix some bugs in the Pipe class and add tests
authorPavel Labath <pavel@labath.sk>
Fri, 8 Jan 2021 19:37:09 +0000 (20:37 +0100)
committerPavel Labath <pavel@labath.sk>
Sun, 10 Jan 2021 20:59:16 +0000 (21:59 +0100)
commit13dea030b3d794d05a08dd0080c35844c9ca1b30
treec203708d95992b524a4bde8cef949066f0fe8b24
parentfc8ab254472972816956c69d16e8b35bc91cc2ab
[lldb] Fix some bugs in the Pipe class and add tests

- s/createUniqueFile/createUniquePath -- we don't want to create the file,
  just the file name
- s/data()/str().c_str()/ -- paths given to system apis must be
  null-terminated
lldb/source/Host/posix/PipePosix.cpp
lldb/unittests/Host/CMakeLists.txt
lldb/unittests/Host/PipeTest.cpp [new file with mode: 0644]