Skip to content

[llvm-lit] Unsupported redirect in compiler-rt test using lit internal shell #102385

@connieyzhu

Description

@connieyzhu

There is a typo in the following compiler-rt test that is an unsupported redirect in lit’s internal shell.

RUN: %clangxx_msan -DRIGHT_OK -std=c++11 -O0 -g %s -o %t && not %run %t 2<&1 | FileCheck %s

Error message:

FAIL: MemorySanitizer-X86_64 :: Linux/sigandorset.cpp (27 of 9570)
******************** TEST 'MemorySanitizer-X86_64 :: Linux/sigandorset.cpp' FAILED ********************
Exit Code: 127

Command Output (stdout):

# RUN: at line 3
/usr/local/google/home/harinidonthula/llvm-project/build/./bin/clang  --driver-mode=g++ -fsanitize=memory -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls  -m64 -fuse-ld=lld  -gline-tables-only -DRIGHT_OK -std=c++11 -O0 -g /usr/local/google/home/harinidonthula/llvm-project/compiler-rt/test/msan/Linux/sigandorset.cpp -o /usr/local/google/home/harinidonthula/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/msan/lld-X86_64/Linux/Output/sigandorset.cpp.tmp && not  /usr/local/google/home/harinidonthula/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/msan/lld-X86_64/Linux/Output/sigandorset.cpp.tmp 2<&1 | FileCheck /usr/local/google/home/harinidonthula/llvm-project/compiler-rt/test/msan/Linux/sigandorset.cpp
# executed command: /usr/local/google/home/harinidonthula/llvm-project/build/./bin/clang --driver-mode=g++ -fsanitize=memory -mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -m64 -fuse-ld=lld -gline-tables-only -DRIGHT_OK -std=c++11 -O0 -g /usr/local/google/home/harinidonthula/llvm-project/compiler-rt/test/msan/Linux/sigandorset.cpp -o /usr/local/google/home/harinidonthula/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/msan/lld-X86_64/Linux/Output/sigandorset.cpp.tmp
# executed command: not /usr/local/google/home/harinidonthula/llvm-project/build/runtimes/runtimes-bins/compiler-rt/test/msan/lld-X86_64/Linux/Output/sigandorset.cpp.tmp
# .---command stderr------------
# | Unsupported redirect: (('<&', 2), '1')
# `-----------------------------
# error: command failed with exit status: 127

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions