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

Connie Zhu via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 22 10:20:58 PDT 2024


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

>From 011ddea5efb03cc20c176a5f5f118a9c9de3384f Mon Sep 17 00:00:00 2001
From: Connie Zhu <connieyzhu at google.com>
Date: Thu, 22 Aug 2024 16:54:06 +0000
Subject: [PATCH] [compiler-rt][test] Rewrote test to remove curly braces

This patch removes curly braces from a test, as lit's internal shell
implementation does not support curly brace syntax.
---
 compiler-rt/test/asan/TestCases/Linux/dlopen-mixed-c-cxx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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..0ac7558b4e99bb 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'
 //



More information about the llvm-commits mailing list