[Lldb-commits] [lldb] Skip tests if socket name is longer than 107 bytes (PR #137405)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Apr 25 15:09:54 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp -- lldb/unittests/Host/SocketTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/unittests/Host/SocketTest.cpp b/lldb/unittests/Host/SocketTest.cpp
index df6794389..70708db57 100644
--- a/lldb/unittests/Host/SocketTest.cpp
+++ b/lldb/unittests/Host/SocketTest.cpp
@@ -373,7 +373,7 @@ TEST_F(SocketTest, AbstractSocketFromBoundNativeSocket) {
llvm::sys::fs::createUniquePath("AbstractSocketFromBoundNativeSocket", name,
true);
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;
``````````
</details>
https://github.com/llvm/llvm-project/pull/137405
More information about the lldb-commits
mailing list