Author: Pavel Labath
Date: 2025-05-07T16:11:09+02:00
New Revision: 1815d62d7c43455c55bfc1842e41a25ea04dcb9b

URL: 
https://github.com/llvm/llvm-project/commit/1815d62d7c43455c55bfc1842e41a25ea04dcb9b
DIFF: 
https://github.com/llvm/llvm-project/commit/1815d62d7c43455c55bfc1842e41a25ea04dcb9b.diff

LOG: [lldb] Add more logging to a unit test

to debug problems with #137978.

Added: 
    

Modified: 
    lldb/unittests/Host/HostTest.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/unittests/Host/HostTest.cpp 
b/lldb/unittests/Host/HostTest.cpp
index 9e4390a48fb18..52224bfd28e61 100644
--- a/lldb/unittests/Host/HostTest.cpp
+++ b/lldb/unittests/Host/HostTest.cpp
@@ -106,6 +106,10 @@ TEST(Host, LaunchProcessDuplicatesHandle) {
   Pipe pipe;
   
ASSERT_THAT_ERROR(pipe.CreateNew(/*child_process_inherit=*/false).takeError(),
                     llvm::Succeeded());
+  SCOPED_TRACE(llvm::formatv("Pipe handles are: {0}/{1}",
+                             (uint64_t)pipe.GetReadPipe(),
+                             (uint64_t)pipe.GetWritePipe())
+                   .str());
   ProcessLaunchInfo info;
   info.SetExecutableFile(FileSpec(TestMainArgv0),
                          /*add_exe_file_as_first_arg=*/true);


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to