Skip to content

[llvm-lit] lit internal shell failing to parse and execute command substitution syntax #102384

@connieyzhu

Description

@connieyzhu

lit’s internal shell cannot recognize and execute the $() command substitution syntax, which is used in tests across clang and compiler-rt.

Example error message:

FAIL: Clang :: Driver/offload-packager.c (17 of 20640)
******************** TEST 'Clang :: Driver/offload-packager.c' FAILED ********************
Exit Code: 127

Command Output (stdout):
--
# RUN: at line 28
cd $(dirname "/usr/local/google/home/harinidonthula/llvm-project/build/tools/clang/test/Driver/Output/offload-packager.c.tmp") && /usr/local/google/home/harinidonthula/llvm-project/build/bin/clang-offload-packager /usr/local/google/home/harinidonthula/llvm-project/build/tools/clang/test/Driver/Output/offload-packager.c.tmp --image=kind=openmp
# executed command: cd '$(dirname' '/usr/local/google/home/harinidonthula/llvm-project/build/tools/clang/test/Driver/Output/offload-packager.c.tmp)'
# .---command stderr------------
# | 'cd' supports only one argument
# `-----------------------------
# error: command failed with exit status: 127

Files with failures:

  • clang/test/Driver/offload-packager.c
  • clang/test/Modules/reduced-bmi-size.cppm
  • compiler-rt/test/hwasan/TestCases/hwasan_symbolize.cpp
  • compiler-rt/test/msan/allocator_mapping.cpp

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'compiler-rt:hwasanHardware-assisted address sanitizertest-suite

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions