[lld] [llvm] [LIT] Use forward slashes in substitutions when LLVM_WINDOWS_PREFER_FORWARD_SLASH is set (PR #179865)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 19 11:52:15 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 131120 tests passed
* 2961 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### lit
<details>
<summary>lit.lit/shtest-readfile.py</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 6
env LIT_USE_INTERNAL_SHELL=1 not env -u FILECHECK_OPTS "C:\Python312\python.exe" C:\_work\llvm-project\llvm-project\llvm\utils\lit\lit.py -j1 -D use_normalized_slashes=0 --order=lexical -v Inputs/shtest-readfile | FileCheck -match-full-lines -DTEMP_PATH=C:\_work\llvm-project\llvm-project\build\utils\lit\tests\Inputs\shtest-readfile\Output C:\_work\llvm-project\llvm-project\build\utils\lit\tests\shtest-readfile.py
# executed command: env LIT_USE_INTERNAL_SHELL=1 not env -u FILECHECK_OPTS 'C:\Python312\python.exe' 'C:\_work\llvm-project\llvm-project\llvm\utils\lit\lit.py' -j1 -D use_normalized_slashes=0 --order=lexical -v Inputs/shtest-readfile
# note: command had no output on stdout or stderr
# executed command: FileCheck -match-full-lines '-DTEMP_PATH=C:\_work\llvm-project\llvm-project\build\utils\lit\tests\Inputs\shtest-readfile\Output' 'C:\_work\llvm-project\llvm-project\build\utils\lit\tests\shtest-readfile.py'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\build\utils\lit\tests\shtest-readfile.py:12:10: error: CHECK: expected string not found in input
# | # CHECK: # executed command: echo '%{readfile:[[TEMP_PATH]]{{[\\\/]}}absolute-paths.txt.tmp}'
# | ^
# | <stdin>:12:11: note: scanning from here
# | echo hello
# | ^
# | <stdin>:12:11: note: with "TEMP_PATH" equal to "C:\_work\llvm-project\llvm-project\build\utils\lit\tests\Inputs\shtest-readfile\Output"
# | echo hello
# | ^
# | <stdin>:13:1: note: possible intended match here
# | # executed command: echo '%{readfile:C:/_work/llvm-project/llvm-project/build/utils/lit/tests/Inputs/shtest-readfile/Output/absolute-paths.txt.tmp}'
# | ^
# | C:\_work\llvm-project\llvm-project\build\utils\lit\tests\shtest-readfile.py:28:10: error: CHECK: expected string not found in input
# | # CHECK: # executed command: echo '%{readfile:[[TEMP_PATH]]{{[\\\/]}}two-same-line.txt.tmp.1}' '%{readfile:[[TEMP_PATH]]{{[\\\/]}}two-same-line.txt.tmp.2}'
# | ^
# | <stdin>:112:15: note: scanning from here
# | echo hello bye
# | ^
# | <stdin>:112:15: note: with "TEMP_PATH" equal to "C:\_work\llvm-project\llvm-project\build\utils\lit\tests\Inputs\shtest-readfile\Output"
# | echo hello bye
# | ^
# | <stdin>:112:15: note: with "TEMP_PATH" equal to "C:\_work\llvm-project\llvm-project\build\utils\lit\tests\Inputs\shtest-readfile\Output"
# | echo hello bye
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\build\utils\lit\tests\shtest-readfile.py
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 7: --
# | 8: # RUN: at line 2
# | 9: echo -n "hello" > C:/_work/llvm-project/llvm-project/build/utils/lit/tests/Inputs/shtest-readfile/Output/absolute-paths.txt.tmp
# | 10: # executed command: echo -n hello
# | 11: # RUN: at line 3
# | 12: echo hello
# | check:12'0 X error: no match found
# | check:12'1 with "TEMP_PATH" equal to "C:\_work\llvm-project\llvm-project\build\utils\lit\tests\Inputs\shtest-readfile\Output"
# | 13: # executed command: echo '%{readfile:C:/_work/llvm-project/llvm-project/build/utils/lit/tests/Inputs/shtest-readfile/Output/absolute-paths.txt.tmp}'
# | check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:12'2 ? possible intended match
# | 14: # .---command stdout------------
# | check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 15: # | hello
# | check:12'0 ~~~~~~~~~~
# | 16: # `-----------------------------
# | check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 17: # RUN: at line 6
# | check:12'0 ~~~~~~~~~~~~~~~~~
# | 18: not echo return
# | check:12'0 ~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 107: # executed command: echo -n hello
# | 108: # RUN: at line 4
# | 109: echo -n "bye" > C:/_work/llvm-project/llvm-project/build/utils/lit/tests/Inputs/shtest-readfile/Output/two-same-line.txt.tmp.2
# | 110: # executed command: echo -n bye
# | 111: # RUN: at line 5
# | 112: echo hello bye
# | check:28'0 X error: no match found
# | check:28'1 with "TEMP_PATH" equal to "C:\_work\llvm-project\llvm-project\build\utils\lit\tests\Inputs\shtest-readfile\Output"
# | check:28'2 with "TEMP_PATH" equal to "C:\_work\llvm-project\llvm-project\build\utils\lit\tests\Inputs\shtest-readfile\Output"
# | 113: # executed command: echo '%{readfile:C:/_work/llvm-project/llvm-project/build/utils/lit/tests/Inputs/shtest-readfile/Output/two-same-line.txt.tmp.1}' '%{readfile:C:/_work/llvm-project/llvm-project/build/utils/lit/tests/Inputs/shtest-readfile/Output/two-same-line.txt.tmp.2}'
# | check:28'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 114: # .---command stdout------------
# | check:28'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 115: # | hello bye
# | check:28'0 ~~~~~~~~~~~~~~
# | 116: # `-----------------------------
# | check:28'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 117: # RUN: at line 8
# | check:28'0 ~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/179865
More information about the llvm-commits
mailing list