[compiler-rt] [compiler-rt][rtsan] intercept accept4 syscall. (PR #117278)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 4 20:55:50 PST 2024
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 7b8cf147addf7d3fb4630475c40153226f5fdbd0 d947f9f14125ce7cece6c6916c4f1beeae2adba6 --extensions cpp -- compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp compiler-rt/lib/rtsan/tests/rtsan_test_interceptors_posix.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/rtsan/tests/rtsan_test_interceptors_posix.cpp b/compiler-rt/lib/rtsan/tests/rtsan_test_interceptors_posix.cpp
index d038312356..6e7cc3b3b3 100644
--- a/compiler-rt/lib/rtsan/tests/rtsan_test_interceptors_posix.cpp
+++ b/compiler-rt/lib/rtsan/tests/rtsan_test_interceptors_posix.cpp
@@ -862,7 +862,9 @@ TEST(TestRtsanInterceptors, AcceptingASocketDiesWhenRealtime) {
#if SANITIZER_INTERCEPT_ACCEPT4
TEST(TestRtsanInterceptors, Accepting4ASocketDiesWhenRealtime) {
- auto Func = []() { EXPECT_LT(accept4(kNotASocketFd, nullptr, nullptr, 0), 0); };
+ auto Func = []() {
+ EXPECT_LT(accept4(kNotASocketFd, nullptr, nullptr, 0), 0);
+ };
ExpectRealtimeDeath(Func, "accept4");
ExpectNonRealtimeSurvival(Func);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/117278
More information about the llvm-commits
mailing list