[libc-commits] [libc] [libc] Migrate dirent/fcntl/sched/signal tests to ErrnoCheckingTest. (PR #158700)

via libc-commits libc-commits at lists.llvm.org
Mon Sep 15 10:54:17 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 origin/main HEAD --extensions cpp -- libc/test/src/dirent/dirent_test.cpp libc/test/src/fcntl/creat_test.cpp libc/test/src/fcntl/fcntl_test.cpp libc/test/src/fcntl/openat_test.cpp libc/test/src/sched/affinity_test.cpp libc/test/src/sched/cpu_count_test.cpp libc/test/src/sched/get_priority_test.cpp libc/test/src/sched/getcpu_test.cpp libc/test/src/sched/param_and_scheduler_test.cpp libc/test/src/sched/sched_rr_get_interval_test.cpp libc/test/src/sched/yield_test.cpp libc/test/src/signal/sigaltstack_test.cpp libc/test/src/signal/signal_test.cpp libc/test/src/signal/sigprocmask_test.cpp
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/libc/test/src/sched/sched_rr_get_interval_test.cpp b/libc/test/src/sched/sched_rr_get_interval_test.cpp
index a8c85346c..d5eecb5be 100644
--- a/libc/test/src/sched/sched_rr_get_interval_test.cpp
+++ b/libc/test/src/sched/sched_rr_get_interval_test.cpp
@@ -17,7 +17,8 @@
 #include "hdr/sched_macros.h"
 #include "hdr/types/struct_timespec.h"
 
-using LlvmLibcSchedRRGetIntervalTest = LIBC_NAMESPACE::testing::ErrnoCheckingTest;
+using LlvmLibcSchedRRGetIntervalTest =
+    LIBC_NAMESPACE::testing::ErrnoCheckingTest;
 
 TEST_F(LlvmLibcSchedRRGetIntervalTest, SmokeTest) {
   auto SetSched = [&](int policy) {

``````````

</details>


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


More information about the libc-commits mailing list