[Lldb-commits] [lldb] [lldb] Adding pipe support to lldb_private::MainLoopWindows. (PR #145621)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 30 02:45:52 PDT 2025


================
@@ -79,7 +79,68 @@ TEST_F(MainLoopTest, ReadObject) {
   ASSERT_EQ(1u, callback_count);
 }
 
-TEST_F(MainLoopTest, NoSpuriousReads) {
+TEST_F(MainLoopTest, ReadPipeObject) {
+  Pipe pipe;
+
+  ASSERT_TRUE(pipe.CreateNew().Success());
+
+  MainLoop loop;
+
+  char X = 'X';
+  size_t len = sizeof(X);
+  ASSERT_THAT_EXPECTED(pipe.Write(&X, len), llvm::Succeeded());
----------------
labath wrote:

```suggestion
  ASSERT_THAT_EXPECTED(pipe.Write(&X, len), llvm::HasValue(1));
```

https://github.com/llvm/llvm-project/pull/145621


More information about the lldb-commits mailing list