[libc-commits] [libc] [libc] Fix stdio tests after #143802 (PR #143810)

LLVM Continuous Integration via libc-commits libc-commits at lists.llvm.org
Wed Jun 11 17:01:26 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime-2` running on `rocm-worker-hw-02` while building `libc` at step 10 "Add check check-libc-amdgcn-amd-amdhsa".

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

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

```
Step 10 (Add check check-libc-amdgcn-amd-amdhsa) failure: test (failure)
...
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcUngetcTest.UngetAndReadBack
[       OK ] LlvmLibcUngetcTest.UngetAndReadBack (322 us)
Ran 1 tests.  PASS: 1  FAIL: 0
[2679/2807] Running hermetic test libc.test.src.stdio.fprintf_test.__hermetic__
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcFPrintfTest.WriteToFile
[       OK ] LlvmLibcFPrintfTest.WriteToFile (472 us)
Ran 1 tests.  PASS: 1  FAIL: 0
[2680/2807] Running hermetic test libc.test.src.stdio.fgetc_test.__hermetic__
FAILED: libc/test/src/stdio/libc.test.src.stdio.fgetc_test.__hermetic__.__cmd__ /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/runtimes/runtimes-amdgcn-amd-amdhsa-bins/libc/test/src/stdio/libc.test.src.stdio.fgetc_test.__hermetic__.__cmd__ 
cd /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/runtimes/runtimes-amdgcn-amd-amdhsa-bins/libc/test/src/stdio && /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/amdhsa-loader /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/runtimes/runtimes-amdgcn-amd-amdhsa-bins/libc/test/src/stdio/libc.test.src.stdio.fgetc_test.__hermetic__.__build__
[==========] Running 2 tests from 1 test suite.
[ RUN      ] LlvmLibcGetcTest.WriteAndReadCharactersWithFgetc
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/libc/test/src/stdio/fgetc_test.cpp:36: FAILURE
          Expected: 0
          Which is: 0
To be not equal to: static_cast<int>(libc_errno)
          Which is: 0
[  FAILED  ] LlvmLibcGetcTest.WriteAndReadCharactersWithFgetc
[ RUN      ] LlvmLibcGetcTest.WriteAndReadCharactersWithGetc
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/libc/test/src/stdio/fgetc_test.cpp:36: FAILURE
          Expected: 0
          Which is: 0
To be not equal to: static_cast<int>(libc_errno)
          Which is: 0
[  FAILED  ] LlvmLibcGetcTest.WriteAndReadCharactersWithGetc
Ran 2 tests.  PASS: 0  FAIL: 2
[2681/2807] Running hermetic test libc.test.src.stdio.asprintf_test.__hermetic__
[==========] Running 5 tests from 1 test suite.
[ RUN      ] LlvmLibcASPrintfTest.SimpleNoConv
[       OK ] LlvmLibcASPrintfTest.SimpleNoConv (50 us)
[ RUN      ] LlvmLibcASPrintfTest.PercentConv
[       OK ] LlvmLibcASPrintfTest.PercentConv (89 us)
[ RUN      ] LlvmLibcASPrintfTest.CharConv
[       OK ] LlvmLibcASPrintfTest.CharConv (82 us)
[ RUN      ] LlvmLibcASPrintfTest.LargeStringNoConv
[       OK ] LlvmLibcASPrintfTest.LargeStringNoConv (693 us)
[ RUN      ] LlvmLibcASPrintfTest.ManyReAlloc
[       OK ] LlvmLibcASPrintfTest.ManyReAlloc (463 us)
Ran 5 tests.  PASS: 5  FAIL: 0
[2682/2807] Running hermetic test libc.test.src.stdio.printf_test.__hermetic__
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcPrintfTest.PrintOut
[       OK ] LlvmLibcPrintfTest.PrintOut (136 us)
Ran 1 tests.  PASS: 1  FAIL: 0
A simple string with no conversions.
1234567890
1234 and more

```

</details>

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


More information about the libc-commits mailing list