[llvm] 14e8741 - [LoongArch][test] Replace bashism `|&` to `2>&1 |` (NFC)

Weining Lu via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 2 03:15:55 PDT 2022


Author: wanglei
Date: 2022-09-02T18:10:54+08:00
New Revision: 14e8741f32783ec94227330904dd7a1d3bc7422a

URL: https://github.com/llvm/llvm-project/commit/14e8741f32783ec94227330904dd7a1d3bc7422a
DIFF: https://github.com/llvm/llvm-project/commit/14e8741f32783ec94227330904dd7a1d3bc7422a.diff

LOG: [LoongArch][test] Replace bashism `|&` to `2>&1 |` (NFC)

The bash syntax `|&` is unsupported on other shells.

Differential Revision: https://reviews.llvm.org/D133187

Added: 
    

Modified: 
    llvm/test/MC/LoongArch/Relocations/reloc-directive-err.s

Removed: 
    


################################################################################
diff  --git a/llvm/test/MC/LoongArch/Relocations/reloc-directive-err.s b/llvm/test/MC/LoongArch/Relocations/reloc-directive-err.s
index e01209d560ae1..07860dfdc87dc 100644
--- a/llvm/test/MC/LoongArch/Relocations/reloc-directive-err.s
+++ b/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


        


More information about the llvm-commits mailing list