[compiler-rt] [compiler-rt][tests] Removed the use of parentheses in compiler-rt tests with lit internal shell (PR #105729)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 26 16:24:02 PDT 2024


================
@@ -23,7 +23,9 @@
 // RUN: %env_ubsan_opts=halt_on_error=1 not %run %t nN 2>&1 | FileCheck %s --check-prefix=CHECK-NULL-MEMFUN --strict-whitespace
 // RUN: %env_ubsan_opts=print_stacktrace=1 %run %t dT 2>&1 | FileCheck %s --check-prefix=CHECK-DYNAMIC --allow-unused-prefixes --check-prefix=CHECK-%os-DYNAMIC --strict-whitespace
 
-// RUN: (echo "vptr_check:S"; echo "vptr_check:T"; echo "vptr_check:U") > %t.supp
+// RUN: echo "vptr_check:S" > %t.supp
+// RUN: echo "vptr_check:T" >> %t.supp
+// RUN: echo "vptr_check:U" >> %t.supp
----------------
fmayer wrote:

Yeah, I played around a bit and on my Linux `/bin/echo`  needed the `-e` to support the escape sequences. So did bash. zsh didn't.

POSIX is silent on that: "If the first operand consists of a '-' followed by one or more characters from the set {'e', 'E', 'n'}, or if any of the operands contain a <backslash> character, the results are implementation-defined." https://pubs.opengroup.org/onlinepubs/9799919799/utilities/echo.html

https://github.com/llvm/llvm-project/pull/105729


More information about the llvm-commits mailing list