[Lldb-commits] [lldb] Skip tests if socket name is longer than 107 bytes (PR #137405)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Fri Apr 25 15:28:41 PDT 2025


================
@@ -349,6 +349,10 @@ TEST_F(SocketTest, DomainSocketFromBoundNativeSocket) {
   ASSERT_FALSE(EC);
   llvm::sys::path::append(name, "test");
 
+  // Skip the test if the $TMPDIR is too long to hold a domain socket.
+  if (name.size() > 107u)
+    return;
----------------
JDevlieghere wrote:

```suggestion
  if (name.size() > 107u)
    GTEST_SKIP() << "$TMPDIR is too long to hold a domain socket";
```

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


More information about the lldb-commits mailing list