[libc-commits] [libc] [libc][stdio] Separate temporary files for unit test and hermetic test in stdio test suite. (PR #149740)
    via libc-commits 
    libc-commits at lists.llvm.org
       
    Mon Jul 21 07:49:44 PDT 2025
    
    
  
lntue wrote:
> Is this intended to fix #144131?
No, this is for a recent precommit flakiness from `libc.test.src.stdio.*` targets like:
```
 FAILED: libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.fileop_test.__unit__ /home/runner/work/llvm-project/llvm-project/build/libc/test/src/stdio/CMakeFiles/libc.test.src.stdio.fileop_test.__unit__ 
cd /home/runner/work/llvm-project/llvm-project/build/libc/test/src/stdio && /home/runner/work/llvm-project/llvm-project/build/libc/test/src/stdio/libc.test.src.stdio.fileop_test.__unit__.__build__
[==========] Running 3 tests from 1 test suite.
[ RUN      ] LlvmLibcFILETest.SimpleFileOperations
/home/runner/work/llvm-project/llvm-project/libc/test/src/stdio/fileop_test.cpp:111: FAILURE
      Expected: __llvm_libc_22_0_0_git::fread(read_data, 1, sizeof(CONTENT) - 1, file)
      Which is: 0
To be equal to: sizeof(CONTENT) - 1
      Which is: 19
[  FAILED  ] LlvmLibcFILETest.SimpleFileOperations
[ RUN      ] LlvmLibcFILETest.FFlush
[       OK ] LlvmLibcFILETest.FFlush (105 us)
[ RUN      ] LlvmLibcFILETest.FOpenFWriteSizeGreaterThanOne
[       OK ] LlvmLibcFILETest.FOpenFWriteSizeGreaterThanOne (36 us)
Ran 3 tests.  PASS: 2  FAIL: 1
```
https://github.com/llvm/llvm-project/pull/149740
    
    
More information about the libc-commits
mailing list