[libc-commits] [libc] [RFC][libc] shut up passing tests (PR #117253)

via libc-commits libc-commits at lists.llvm.org
Thu Nov 21 14:46:49 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 8663b8777e8108f74f91a2a33115b3a00d57c043 e32431042798d1ed163021911cd7b30bba87c3c9 --extensions cpp,h -- libc/test/UnitTest/LibcTest.cpp libc/test/UnitTest/LibcTest.h libc/test/UnitTest/LibcTestMain.cpp libc/test/src/string/memchr_test.cpp libc/test/utils/UnitTest/testfilter_test.cpp
``````````

</details>

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

``````````diff
diff --git a/libc/test/UnitTest/LibcTest.cpp b/libc/test/UnitTest/LibcTest.cpp
index 955b7ba1dc..727028a8b9 100644
--- a/libc/test/UnitTest/LibcTest.cpp
+++ b/libc/test/UnitTest/LibcTest.cpp
@@ -205,8 +205,8 @@ int Test::runTests(const TestOptions &Options) {
   if (TestCount > 0) {
     if (!Options.Brief) {
       tlog << "Ran " << TestCount << " tests. "
-           << " PASS: " << TestCount - FailCount << ' ' << " FAIL: " << FailCount
-           << '\n';
+           << " PASS: " << TestCount - FailCount << ' '
+           << " FAIL: " << FailCount << '\n';
     }
   } else {
     tlog << "No tests run.\n";

``````````

</details>


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


More information about the libc-commits mailing list