[llvm] Add text file support for z/OS back in (PR #209259)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 13 12:04:53 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 138512 tests passed
* 3537 tests skipped
* 4 tests failed

## Failed Tests
(click on a test name to see its output)

### Clang
<details>
<summary>Clang.Analysis/diagnostics/sarif-multi-diagnostic-test.c</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
rm -rf C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\diagnostics\Output\sarif-multi-diagnostic-test.c.tmp && mkdir C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\diagnostics\Output\sarif-multi-diagnostic-test.c.tmp && c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=core,optin.taint,debug.TaintTest,unix.Malloc C:\_work\llvm-project\llvm-project\clang\test\Analysis\diagnostics\sarif-multi-diagnostic-test.c -verify -analyzer-output=sarif-html -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\diagnostics\Output\sarif-multi-diagnostic-test.c.tmp\out.sarif
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\diagnostics\Output\sarif-multi-diagnostic-test.c.tmp'
# note: command had no output on stdout or stderr
# executed command: mkdir 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\diagnostics\Output\sarif-multi-diagnostic-test.c.tmp'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -analyze -setup-static-analyzer -analyzer-checker=core,optin.taint,debug.TaintTest,unix.Malloc 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\diagnostics\sarif-multi-diagnostic-test.c' -verify -analyzer-output=sarif-html -o 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\diagnostics\Output\sarif-multi-diagnostic-test.c.tmp\out.sarif'
# note: command had no output on stdout or stderr
# RUN: at line 2
cat C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\diagnostics\Output\sarif-multi-diagnostic-test.c.tmp\out.sarif | sed -r 's/"version": "2.1.0"/"version": "[SARIF version]"/;s/"version": ".*[0-9]+\.[0-9]+\.[0-9]+.*"/"version": "[clang version]"/;s/"file:(\/+)([^"\/]+\/)*([^"]+)"/"file:\1[...]\/\3"/;s/"length": [[:digit:]]+/"length": -1/' | diff -U1 -b C:\_work\llvm-project\llvm-project\clang\test\Analysis\diagnostics/Inputs/expected-sarif/sarif-multi-diagnostic-test.c.sarif -
# executed command: cat 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Analysis\diagnostics\Output\sarif-multi-diagnostic-test.c.tmp\out.sarif'
# note: command had no output on stdout or stderr
# executed command: sed -r 's/"version": "2.1.0"/"version": "[SARIF version]"/;s/"version": ".*[0-9]+\.[0-9]+\.[0-9]+.*"/"version": "[clang version]"/;s/"file:(\/+)([^"\/]+\/)*([^"]+)"/"file:\1[...]\/\3"/;s/"length": [[:digit:]]+/"length": -1/'
# note: command had no output on stdout or stderr
# executed command: diff -U1 -b 'C:\_work\llvm-project\llvm-project\clang\test\Analysis\diagnostics/Inputs/expected-sarif/sarif-multi-diagnostic-test.c.sarif' -
# .---command stdout------------
# | --- C:\_work\llvm-project\llvm-project\clang\test\Analysis\diagnostics/Inputs/expected-sarif/sarif-multi-diagnostic-test.c.sarif
# | +++ -
# | @@ -415,3 +415,3 @@
# |  "message": {
# | -"text": "'løçål' initialized to 0"
# | +"text": "'løçål' initialized to 0"
# |  },
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.ClangScanDeps/optimize-canonicalize-macros.m</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 4
rm -rf C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\optimize-canonicalize-macros.m.tmp
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\optimize-canonicalize-macros.m.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 5
split-file C:\_work\llvm-project\llvm-project\clang\test\ClangScanDeps\optimize-canonicalize-macros.m C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\optimize-canonicalize-macros.m.tmp
# executed command: split-file 'C:\_work\llvm-project\llvm-project\clang\test\ClangScanDeps\optimize-canonicalize-macros.m' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\optimize-canonicalize-macros.m.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 6
sed -e "s|DIR|C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/optimize-canonicalize-macros.m.tmp|g" C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\optimize-canonicalize-macros.m.tmp/build/compile-commands.json.in > C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\optimize-canonicalize-macros.m.tmp/build/compile-commands.json
# executed command: sed -e 's|DIR|C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/optimize-canonicalize-macros.m.tmp|g' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\optimize-canonicalize-macros.m.tmp/build/compile-commands.json.in'
# note: command had no output on stdout or stderr
# RUN: at line 7
c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe -compilation-database C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\optimize-canonicalize-macros.m.tmp/build/compile-commands.json    -j 1 -format experimental-full -optimize-args=canonicalize-macros > C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\optimize-canonicalize-macros.m.tmp/deps.db
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang-scan-deps.exe' -compilation-database 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\optimize-canonicalize-macros.m.tmp/build/compile-commands.json' -j 1 -format experimental-full -optimize-args=canonicalize-macros
# .---command stderr------------
# | Diagnostics while scanning dependencies for 'C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/optimize-canonicalize-macros.m.tmp/tu2.m':
# | <built-in>:413:10: warning: ISO C99 requires whitespace after the macro name
# | <built-in>:412:10: warning: ISO C99 requires whitespace after the macro name
# `-----------------------------
# RUN: at line 9
cat C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\optimize-canonicalize-macros.m.tmp/deps.db | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\ClangScanDeps\optimize-canonicalize-macros.m -DPREFIX=C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/optimize-canonicalize-macros.m.tmp
# executed command: cat 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\ClangScanDeps\Output\optimize-canonicalize-macros.m.tmp/deps.db'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\ClangScanDeps\optimize-canonicalize-macros.m' -DPREFIX=C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/optimize-canonicalize-macros.m.tmp
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\ClangScanDeps\optimize-canonicalize-macros.m:37:11: error: CHECK: expected string not found in input
# | // CHECK: "Fà¶ž"
# | <stdin>:116:19: note: scanning from here
# |  "command-line": [
# |                   ^
# | <stdin>:117:2: note: possible intended match here
# |  "-cc1",
# |  ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\ClangScanDeps\optimize-canonicalize-macros.m
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |           111:  "name": "A" 
# |           112:  }, 
# |           113:  { 
# |           114:  "clang-module-deps": [], 
# |           115:  "clang-modulemap-file": "C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\ClangScanDeps\\Output\\optimize-canonicalize-macros.m.tmp\\modules\\A\\module.modulemap", 
# |           116:  "command-line": [ 
# | check:37'0                      {   search range start (exclusive)
# | check:37'1                          error: no match found in search range
# |           117:  "-cc1", 
# | check:37'2      ?         possible intended match
# |           118:  "-ferror-limit", 
# |           119:  "19", 
# |           120:  "-o", 
# |           121:  "C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/optimize-canonicalize-macros.m.tmp/module-cache\\1SNMWYCGVAYGK05L6GJARERFD\\A-1SNMWYCGVAYGK05L6GJARERFD.pcm", 
# |           122:  "-disable-free", 
# |             .
# |             .
# |             .
# |           534:  "input-file": "C:/_work/llvm-project/llvm-project/build/tools/clang/test/ClangScanDeps/Output/optimize-canonicalize-macros.m.tmp/tu2.m" 
# |           535:  } 
# |           536:  ] 
# |           537:  } 
# |           538:  ] 
# |           539: }
# | check:37'3      } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.Lexer/minimize_source_to_dependency_directives_utf8bom.c</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
cat C:\_work\llvm-project\llvm-project\clang\test\Lexer/Inputs/bom-directives.c | od -t x1 | grep -iq 'ef[[:space:]]*bb[[:space:]]*bf'
# executed command: cat 'C:\_work\llvm-project\llvm-project\clang\test\Lexer/Inputs/bom-directives.c'
# note: command had no output on stdout or stderr
# executed command: od -t x1
# note: command had no output on stdout or stderr
# executed command: grep -iq 'ef[[:space:]]*bb[[:space:]]*bf'
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1

--

```
</details>

### lit
<details>
<summary>lit.lit/shtest-shell.py</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 3
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-shell > C:\_work\llvm-project\llvm-project\build\utils\lit\tests\Output\shtest-shell.py.tmp.out
# executed command: 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-shell
# note: command had no output on stdout or stderr
# RUN: at line 4
FileCheck --input-file C:\_work\llvm-project\llvm-project\build\utils\lit\tests\Output\shtest-shell.py.tmp.out C:\_work\llvm-project\llvm-project\build\utils\lit\tests\shtest-shell.py
# executed command: FileCheck --input-file 'C:\_work\llvm-project\llvm-project\build\utils\lit\tests\Output\shtest-shell.py.tmp.out' 'C:\_work\llvm-project\llvm-project\build\utils\lit\tests\shtest-shell.py'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\build\utils\lit\tests\shtest-shell.py:98:10: error: CHECK: expected string not found in input
# | # CHECK: cat diff-in.bin | diff -u diff-in.bin -
# |          ^
# | C:\_work\llvm-project\llvm-project\build\utils\lit\tests\Output\shtest-shell.py.tmp.out:115:40: note: scanning from here
# | cat diff-in.bin | diff -u - diff-in.bin
# |                                        ^
# | C:\_work\llvm-project\llvm-project\build\utils\lit\tests\Output\shtest-shell.py.tmp.out:117:6: note: possible intended match here
# | # executed command: diff -u - diff-in.bin
# |      ^
# | 
# | Input file: C:\_work\llvm-project\llvm-project\build\utils\lit\tests\Output\shtest-shell.py.tmp.out
# | Check file: C:\_work\llvm-project\llvm-project\build\utils\lit\tests\shtest-shell.py
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |           110: # | +baz 
# |           111: # `----------------------------- 
# |           112: # error: command failed with exit status: 1 
# |           113: # executed command: true 
# |           114: # RUN: at line 8 
# |           115: cat diff-in.bin | diff -u - diff-in.bin 
# | check:98'0                                           {   search range start (exclusive)
# | check:98'1                                               error: no match found in search range
# |           116: # executed command: cat diff-in.bin 
# |           117: # executed command: diff -u - diff-in.bin 
# | check:98'2          ?                                      possible intended match
# |           118: # .---command stdout------------ 
# |           119: # | --- - 
# |           120: # | +++ C:\_work\llvm-project\llvm-project\build\utils\lit\tests\Inputs\shtest-shell\diff-in.bin 
# |           121: # | @@ -1,3 +1,3 @@ 
# |           122: # | foo 
# |             .
# |             .
# |             .
# |          1184:  
# |          1185: Total Discovered Tests: 47 
# |          1186:  Passed : 8 (17.02%) 
# |          1187:  Expectedly Failed: 1 (2.13%) 
# |          1188:  Unresolved : 1 (2.13%) 
# |          1189:  Failed : 37 (78.72%) 
# | check:98'3                           } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# 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/209259


More information about the llvm-commits mailing list