Skip to content

[Infrastructure] flang/test/Semantics/windows.f90 failing with "RUN: at line 1 has no command after substitutions" #146781

Open
@dpaoliello

Description

@dpaoliello

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:

! RUN: %if x86_64-registered-target %{ %python %S/test_errors.py %s %flang --target=x86_64-pc-windows-msvc -Werror %}
! RUN: %if aarch64-registered-target %{ %python %S/test_errors.py %s %flang --target=aarch64-pc-windows-msvc -Werror %}

Metadata

Metadata

Assignees

No one assigned

    Labels

    flangFlang issues not falling into any other categoryinfrastructureBugs about LLVM infrastructure

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions