<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/102385>102385</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[llvm-lit] Unsupported redirect in compiler-rt test using lit internal shell
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
connieyzhu
</td>
</tr>
</table>
<pre>
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
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsVl1v2zYU_TX0ywUN6Sr68IMeEjvainUL0KbA3gJaupK4UaTAjzTJrx8oO4iXpN3QrhsKTBAsWiKlcw_PIY9wTg6aqGb5Bct3KxH8aGzdGq0l3T-MYbU33X19PZIlkA4E-PvZgNTgR4LeKGU-Sj1Aa6ZZKrLcevDkPPhR-GWAhqBdmGdjPXVgqZOWWh_foKRnl8iqhG02DqT2ZLVQ4EZSas2SHUvOj79F8u7DLyw7B4Z5q4Qe7u5uJic08N27Nz_8eH1z9RNw5zuW7VqGFwwv0hT4VQJ8iEMccBOvHhgWDAvQJjZzG_ThNrJsy7BIgZVbaKSi7Ujt78tQViSnUC6tNRYmck4MxLLzZzCP5_K3OX_zNmL-mSZj798LLb18IMt_rYqb4gzi4Owc3kod7hg2Tg5Cd8Y68ut2noFhhSWYHjZ5mTDcHD-BX37C9eX7a2BYfhEghiXEii538DUgjizeSQ9b00UGIcXylMWtmSahO7gKfg5xmirnOxN85OAZ35jBURfCg5KaIHt80gRnGTbKtEIxbAZjBkUMm9FMy0VYqWVntB-DErGjup34bM1v1HqGzT5I1TFs1rEtNcNmkR0A552Vt2T5tKDfDQe5Ae_dkU-W7aaFYOCTNtxM0nNFoue9FRPx2SxCB94_Pnzt_uzlJB-IO7lXUg-8FUo5AD4VZ8D74IirKHalOgA-xNK5F3tFjhut7v-eLb6SohPHM2yi5xk20ZQMm0-JerHhPzQ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