[compiler-rt] [compiler-rt][test] Rewrote test to remove curly braces (PR #105696)

via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 22 10:00:52 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: Connie Zhu (connieyzhu)

<details>
<summary>Changes</summary>

This patch removes curly braces from a test, as lit's internal shell implementation does not support curly brace syntax.

---
Full diff: https://github.com/llvm/llvm-project/pull/105696.diff


1 Files Affected:

- (modified) compiler-rt/test/asan/TestCases/Linux/dlopen-mixed-c-cxx.c (+1-1) 


``````````diff
diff --git a/compiler-rt/test/asan/TestCases/Linux/dlopen-mixed-c-cxx.c b/compiler-rt/test/asan/TestCases/Linux/dlopen-mixed-c-cxx.c
index 05b55f9e3fcc28..f17d2c9324d219 100644
--- a/compiler-rt/test/asan/TestCases/Linux/dlopen-mixed-c-cxx.c
+++ b/compiler-rt/test/asan/TestCases/Linux/dlopen-mixed-c-cxx.c
@@ -1,7 +1,7 @@
 // RUN: %clangxx_asan -xc++ -shared -fPIC -o %t.so - < %s
 // RUN: %clang_asan %s -o %t.out -ldl
 //
-// RUN: { env ASAN_OPTIONS=verbosity=1 %t.out %t.so || : ; } 2>&1 | FileCheck %s
+// RUN: env ASAN_OPTIONS=verbosity=1 %t.out %t.so 2>&1 | FileCheck %s || : 
 //
 // CHECK: AddressSanitizer: failed to intercept '__cxa_throw'
 //

``````````

</details>


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


More information about the llvm-commits mailing list