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

Paul Kirth via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 23 09:58:18 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
----------------
ilovepi wrote:

Couldn't you rewrite the `echo` command w/ newlines to avoid the need for multiple RUN lines?

Alternatively, you could use use split-file instead. It will take some rewriting of the test, since you'll need to make the directory at the top of the file w/ `%t`, and then update uses of `%t` and %s`.



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


More information about the llvm-commits mailing list