[PATCH] D133187: [LoongArch][test] Replace bashism `|&` to `2>&1 |` (NFC)
Ray Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 2 00:03:42 PDT 2022
wangleiat created this revision.
wangleiat added a reviewer: SixWeining.
Herald added a project: All.
wangleiat requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
The bash syntax `|&` is unsupported on other shells.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D133187
Files:
llvm/test/MC/LoongArch/Relocations/reloc-directive-err.s
Index: llvm/test/MC/LoongArch/Relocations/reloc-directive-err.s
===================================================================
--- llvm/test/MC/LoongArch/Relocations/reloc-directive-err.s
+++ llvm/test/MC/LoongArch/Relocations/reloc-directive-err.s
@@ -1,5 +1,6 @@
# RUN: llvm-mc --triple=loongarch64 %s |& FileCheck --check-prefix=PRINT %s
-# RUN: not llvm-mc --filetype=obj --triple=loongarch64 %s -o /dev/null |& FileCheck %s
+# RUN: not llvm-mc --filetype=obj --triple=loongarch64 %s -o /dev/null 2>&1 \
+# RUN: | FileCheck %s
# PRINT: .reloc 0, R_INVALID, 0
# CHECK: {{.*}}.s:[[# @LINE+1]]:11: error: unknown relocation name
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133187.457518.patch
Type: text/x-patch
Size: 642 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220902/50033963/attachment.bin>
More information about the llvm-commits
mailing list