Closed
Description
lit’s internal shell currently does not support the -e
option for cat
, which gives an error when running the lldb test referenced below.
Error message:
FAIL: lldb-shell :: Driver/TestUseColor.test (1 of 2512)
******************** TEST 'lldb-shell :: Driver/TestUseColor.test' FAILED ********************
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 4
cat -e /usr/local/google/home/harinidonthula/llvm-project/build/tools/lldb/test/Shell/Driver/Output/TestUseColor.test.tmp | /usr/local/google/home/harinidonthula/llvm-project/build/bin/FileCheck /usr/local/google/home/harinidonthula/llvm-project/lldb/test/Shell/Driver/TestUseColor.test --check-prefix COLOR
# executed command: cat -e /usr/local/google/home/harinidonthula/llvm-project/build/tools/lldb/test/Shell/Driver/Output/TestUseColor.test.tmp
# .---command stderr------------
# | Unsupported: 'cat': option -e not recognized
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /usr/local/google/home/harinidonthula/llvm-project/build/bin/FileCheck /usr/local/google/home/harinidonthula/llvm-project/lldb/test/Shell/Driver/TestUseColor.test --check-prefix COLOR
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /usr/local/google/home/harinidonthula/llvm-project/build/bin/FileCheck /usr/local/google/home/harinidonthula/llvm-project/lldb/test/Shell/Driver/TestUseColor.test --check-prefix COLOR
# `-----------------------------
# error: command failed with exit status: 2
Activity
llvmbot commentedon Aug 7, 2024
@llvm/issue-subscribers-lldb
Author: Connie (connieyzhu)
Error message:
[lldb][test] Change unsupported cat -e to cat -v to work with lit int…