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

via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 28 11:36:38 PDT 2024


Author: Connie Zhu
Date: 2024-08-28T11:36:35-07:00
New Revision: b978bcc0f6c598b34f9920a1803e9bba7dff7f94

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

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

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

Fixes https://github.com/llvm/llvm-project/issues/102382.

Added: 
    

Modified: 
    compiler-rt/test/asan/TestCases/Linux/dlopen-mixed-c-cxx.c

Removed: 
    


################################################################################
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..7131ec3220425d 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 not %t.out %t.so 2>&1 | FileCheck %s
 //
 // CHECK: AddressSanitizer: failed to intercept '__cxa_throw'
 //


        


More information about the llvm-commits mailing list