[libc-commits] [libc] [libc] Migrate stdio tests to ErrnoCheckingTest. (PR #143802)

LLVM Continuous Integration via libc-commits libc-commits at lists.llvm.org
Wed Jun 11 16:27:36 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `libc-x86_64-debian-gcc-fullbuild-dbg` running on `libc-x86_64-debian-fullbuild` while building `libc` at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/131/builds/23815

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[ RUN      ] LlvmLibcRoundToIntegerTest.RoundNumbers
[       OK ] LlvmLibcRoundToIntegerTest.RoundNumbers (18 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.SubnormalRange
[       OK ] LlvmLibcRoundToIntegerTest.SubnormalRange (2050 ms)
Ran 3 tests.  PASS: 3  FAIL: 0
[1162/1222] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.remove_test.__unit__.__build__.dir/remove_test.cpp.o
[1163/1222] Building CXX object libc/test/src/stdlib/CMakeFiles/libc.test.src.stdlib.strtold_test.__unit__.__build__.dir/strtold_test.cpp.o
[1164/1222] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.unlocked_fileop_test.__unit__.__build__.dir/unlocked_fileop_test.cpp.o
[1165/1222] Linking CXX executable libc/test/src/stdio/libc.test.src.stdio.fgetc_unlocked_test.__unit__.__build__
[1166/1222] Running unit test libc.test.src.stdio.fgetc_unlocked_test.__unit__
FAILED: libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.fgetc_unlocked_test.__unit__ /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.fgetc_unlocked_test.__unit__ 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/libc/test/src/stdio && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/libc/test/src/stdio/libc.test.src.stdio.fgetc_unlocked_test.__unit__.__build__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcGetcTest.WriteAndReadCharactersWithFgetcUnlocked
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/ErrnoCheckingTest.h:32: FAILURE
      Expected: 0
      Which is: 0
To be equal to: static_cast<int>(libc_errno)
      Which is: 9
[  FAILED  ] LlvmLibcGetcTest.WriteAndReadCharactersWithFgetcUnlocked
[ RUN      ] LlvmLibcGetcTest.WriteAndReadCharactersWithGetcUnlocked
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/ErrnoCheckingTest.h:32: FAILURE
      Expected: 0
      Which is: 0
To be equal to: static_cast<int>(libc_errno)
      Which is: 9
[  FAILED  ] LlvmLibcGetcTest.WriteAndReadCharactersWithGetcUnlocked
Ran 2 tests.  PASS: 0  FAIL: 2
[1167/1222] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.fgetc_test.__unit__.__build__.dir/fgetc_test.cpp.o
[1168/1222] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.fgets_test.__unit__.__build__.dir/fgets_test.cpp.o
[1169/1222] Running unit test libc.test.src.math.smoke.lrintf128_test.__unit__
[==========] Running 3 tests from 1 test suite.
[ RUN      ] LlvmLibcRoundToIntegerTest.InfinityAndNaN
[       OK ] LlvmLibcRoundToIntegerTest.InfinityAndNaN (10 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.RoundNumbers
[       OK ] LlvmLibcRoundToIntegerTest.RoundNumbers (20 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.SubnormalRange
[       OK ] LlvmLibcRoundToIntegerTest.SubnormalRange (2266 ms)
Ran 3 tests.  PASS: 3  FAIL: 0
[1170/1222] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.fopencookie_test.__unit__.__build__.dir/fopencookie_test.cpp.o
[1171/1222] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.fdopen_test.__unit__.__build__.dir/fdopen_test.cpp.o
[1172/1222] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.rename_test.__unit__.__build__.dir/rename_test.cpp.o
[1173/1222] Running unit test libc.test.src.math.smoke.llrintf128_test.__unit__
[==========] Running 3 tests from 1 test suite.
[ RUN      ] LlvmLibcRoundToIntegerTest.InfinityAndNaN
[       OK ] LlvmLibcRoundToIntegerTest.InfinityAndNaN (13 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.RoundNumbers
[       OK ] LlvmLibcRoundToIntegerTest.RoundNumbers (24 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.SubnormalRange
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[ RUN      ] LlvmLibcRoundToIntegerTest.RoundNumbers
[       OK ] LlvmLibcRoundToIntegerTest.RoundNumbers (18 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.SubnormalRange
[       OK ] LlvmLibcRoundToIntegerTest.SubnormalRange (2050 ms)
Ran 3 tests.  PASS: 3  FAIL: 0
[1162/1222] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.remove_test.__unit__.__build__.dir/remove_test.cpp.o
[1163/1222] Building CXX object libc/test/src/stdlib/CMakeFiles/libc.test.src.stdlib.strtold_test.__unit__.__build__.dir/strtold_test.cpp.o
[1164/1222] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.unlocked_fileop_test.__unit__.__build__.dir/unlocked_fileop_test.cpp.o
[1165/1222] Linking CXX executable libc/test/src/stdio/libc.test.src.stdio.fgetc_unlocked_test.__unit__.__build__
[1166/1222] Running unit test libc.test.src.stdio.fgetc_unlocked_test.__unit__
FAILED: libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.fgetc_unlocked_test.__unit__ /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.fgetc_unlocked_test.__unit__ 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/libc/test/src/stdio && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/build/libc/test/src/stdio/libc.test.src.stdio.fgetc_unlocked_test.__unit__.__build__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcGetcTest.WriteAndReadCharactersWithFgetcUnlocked
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/ErrnoCheckingTest.h:32: FAILURE
      Expected: 0
      Which is: 0
To be equal to: static_cast<int>(libc_errno)
      Which is: 9
[  FAILED  ] LlvmLibcGetcTest.WriteAndReadCharactersWithFgetcUnlocked
[ RUN      ] LlvmLibcGetcTest.WriteAndReadCharactersWithGetcUnlocked
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-gcc-fullbuild-dbg/llvm-project/libc/test/UnitTest/ErrnoCheckingTest.h:32: FAILURE
      Expected: 0
      Which is: 0
To be equal to: static_cast<int>(libc_errno)
      Which is: 9
[  FAILED  ] LlvmLibcGetcTest.WriteAndReadCharactersWithGetcUnlocked
Ran 2 tests.  PASS: 0  FAIL: 2
[1167/1222] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.fgetc_test.__unit__.__build__.dir/fgetc_test.cpp.o
[1168/1222] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.fgets_test.__unit__.__build__.dir/fgets_test.cpp.o
[1169/1222] Running unit test libc.test.src.math.smoke.lrintf128_test.__unit__
[==========] Running 3 tests from 1 test suite.
[ RUN      ] LlvmLibcRoundToIntegerTest.InfinityAndNaN
[       OK ] LlvmLibcRoundToIntegerTest.InfinityAndNaN (10 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.RoundNumbers
[       OK ] LlvmLibcRoundToIntegerTest.RoundNumbers (20 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.SubnormalRange
[       OK ] LlvmLibcRoundToIntegerTest.SubnormalRange (2266 ms)
Ran 3 tests.  PASS: 3  FAIL: 0
[1170/1222] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.fopencookie_test.__unit__.__build__.dir/fopencookie_test.cpp.o
[1171/1222] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.fdopen_test.__unit__.__build__.dir/fdopen_test.cpp.o
[1172/1222] Building CXX object libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.rename_test.__unit__.__build__.dir/rename_test.cpp.o
[1173/1222] Running unit test libc.test.src.math.smoke.llrintf128_test.__unit__
[==========] Running 3 tests from 1 test suite.
[ RUN      ] LlvmLibcRoundToIntegerTest.InfinityAndNaN
[       OK ] LlvmLibcRoundToIntegerTest.InfinityAndNaN (13 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.RoundNumbers
[       OK ] LlvmLibcRoundToIntegerTest.RoundNumbers (24 us)
[ RUN      ] LlvmLibcRoundToIntegerTest.SubnormalRange

```

</details>

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


More information about the libc-commits mailing list