[libc-commits] [libc] [libc] fix unit tests (PR #75361)

via libc-commits libc-commits at lists.llvm.org
Wed Dec 13 09:26:14 PST 2023


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 74818511b6380d51bbbb2045da5b774d44c88041 0efed5486b4e18b542e3a298c163caa257d5beca -- libc/test/src/fcntl/creat_test.cpp libc/test/src/sys/resource/getrlimit_setrlimit_test.cpp libc/test/src/unistd/symlink_test.cpp libc/test/src/unistd/syscall_test.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libc/test/src/unistd/syscall_test.cpp b/libc/test/src/unistd/syscall_test.cpp
index 7a354e1cb5..6a5ca47f8d 100644
--- a/libc/test/src/unistd/syscall_test.cpp
+++ b/libc/test/src/unistd/syscall_test.cpp
@@ -12,7 +12,7 @@
 #include "test/UnitTest/Test.h"
 
 #include <fcntl.h>
-#include <sys/stat.h> // For S_* flags.
+#include <sys/stat.h>    // For S_* flags.
 #include <sys/syscall.h> // For syscall numbers.
 #include <unistd.h>
 

``````````

</details>


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


More information about the libc-commits mailing list