<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/146781>146781</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Infrastructure] flang/test/Semantics/windows.f90 failing with "RUN: at line 1 has no command after substitutions"
</td>
</tr>
<tr>
<th>Labels</th>
<td>
infrastructure,
flang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
dpaoliello
</td>
</tr>
</table>
<pre>
See build: <https://github.com/llvm/llvm-project/actions/runs/16031979757/job/45234562050?pr=146582>
Test is failing for Linux only:
```
2025-07-02T18:03:40.9385241Z FAIL: Flang :: Semantics/windows.f90 (3463 of 3566)
2025-07-02T18:03:40.9385789Z ******************** TEST 'Flang :: Semantics/windows.f90' FAILED ********************
2025-07-02T18:03:40.9386277Z Exit Code: 1
2025-07-02T18:03:40.9386441Z
2025-07-02T18:03:40.9386576Z Command Output (stdout):
2025-07-02T18:03:40.9386889Z --
2025-07-02T18:03:40.9387125Z ---
2025-07-02T18:03:40.9387366Z +++
2025-07-02T18:03:40.9387633Z @@ -0,0 +1,2 @@
2025-07-02T18:03:40.9387801Z
2025-07-02T18:03:40.9388091Z expect at 6: User IDs do not exist on Windows. This function will always return 1
2025-07-02T18:03:40.9388756Z expect at 11: Group IDs do not exist on Windows. This function will always return 1
2025-07-02T18:03:40.9389166Z
2025-07-02T18:03:40.9389319Z FAIL
2025-07-02T18:03:40.9389459Z
2025-07-02T18:03:40.9389549Z --
2025-07-02T18:03:40.9389783Z Command Output (stderr):
2025-07-02T18:03:40.9390099Z --
2025-07-02T18:03:40.9390396Z RUN: at line 1 has no command after substitutions
2025-07-02T18:03:40.9392544Z "/usr/bin/python3" /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Semantics/test_errors.py /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Semantics/windows.f90 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang --target=aarch64-pc-windows-msvc -Werror # RUN: at line 2
2025-07-02T18:03:40.9396750Z + /usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Semantics/test_errors.py /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Semantics/windows.f90 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang --target=aarch64-pc-windows-msvc -Werror
2025-07-02T18:03:40.9398458Z
2025-07-02T18:03:40.9398563Z --
2025-07-02T18:03:40.9398690Z
2025-07-02T18:03:40.9398786Z ********************
```
The RUN command is contained in an `%if` block, so if there is no x86_64 or aarch64 registered targets, then it will result in an empty command:
https://github.com/llvm/llvm-project/blob/551d6ddaa3810749ecae33f65759870b78b9a86a/flang/test/Semantics/windows.f90#L1-L2
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzsV11v27gS_TX0y0AGORQp6sEPrhNdFAjuBW5TFPBLQUmUxVYWDZJqkn-_oOxsP3bXStvdPi1AQJAwnDNzZng40iHYw2jMhohXRNys9BR75zftSbvBmmFwq9q1T5s3xkA92aElfAuE7_oYT4HwLcGKYHWwsZ_qdeOOBKth-PT8yE7efTBNJFjpJlo3BoKVn-YHk5SzsigLURCsPriaYJUL5LmQSAUlvDp5wm9YLoVCwm8J3RK6vTchgg3QaTvY8QCd83Bnx-kR3Dg8pYBmMyLpZdEtUhQZLTKK90wRvqWc8G1O1yVXAnO2h2r7-i6lVQ16PEDywbfwxhz1GG2TQn2wY-sewrorKRBUPJccXAdcSEmwXIAoVLkHgtsfXnB_--YeCBYviY9gMedze_NTmNdzklgUe7h9tBF2rjUpHLawI09EL9iIQu5h545HPbbwvymeppjoDrF1U0xE86W4VOI6y65bFQxFssoW4im4lKlyr85ryVpyvgeSU5JTyCjBXeqVV4zgDi-fFxwoukiRoiXbg3k8mSaCjiAT9W-D8fD6JkDrYHQRzKMNEdwI7y5tAfd9OjHTOB9BeLDDAHp40E8BvImTH5eqpwohv4RlLOH-x7vp9M8Cl2w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