[libc-commits] [libc] [libc][test] Fix death test timeouts and dead-code elimination in math tests. (PR #227966)
via libc-commits
libc-commits at lists.llvm.org
Wed Sep 30 23:08:07 PDT 2026
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,h -- libc/test/UnitTest/ExecuteFunctionUnix.cpp libc/test/src/math/smoke/AddTest.h libc/test/src/math/smoke/DivTest.h libc/test/src/math/smoke/MulTest.h libc/test/src/math/smoke/SubTest.h --diff_from_common_commit
``````````
: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/UnitTest/ExecuteFunctionUnix.cpp b/libc/test/UnitTest/ExecuteFunctionUnix.cpp
index 0bc16ab67..ada5fb148 100644
--- a/libc/test/UnitTest/ExecuteFunctionUnix.cpp
+++ b/libc/test/UnitTest/ExecuteFunctionUnix.cpp
@@ -28,8 +28,8 @@
#include "src/unistd/fork.h"
#include "src/unistd/pipe.h"
#ifdef __linux__
-#include <linux/prctl.h>
#include "src/sys/prctl/prctl.h"
+#include <linux/prctl.h>
#endif
#define LIBC_IMPL LIBC_NAMESPACE
``````````
</details>
https://github.com/llvm/llvm-project/pull/227966
More information about the libc-commits
mailing list