From 5d96f44da19611b955b8d469671a62a63cd5a41e Mon Sep 17 00:00:00 2001 From: Timur Iskhodzhanov Date: Wed, 16 Jul 2014 12:56:47 +0000 Subject: [PATCH] [ASan] Adjust 'sed' invocation to work on OS X This is a follow-up to r213053 llvm-svn: 213144 --- compiler-rt/test/asan/TestCases/Darwin/interface_symbols_darwin.c | 2 +- compiler-rt/test/asan/TestCases/Linux/interface_symbols_linux.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler-rt/test/asan/TestCases/Darwin/interface_symbols_darwin.c b/compiler-rt/test/asan/TestCases/Darwin/interface_symbols_darwin.c index 92a1c4d..fb9ede3 100644 --- a/compiler-rt/test/asan/TestCases/Darwin/interface_symbols_darwin.c +++ b/compiler-rt/test/asan/TestCases/Darwin/interface_symbols_darwin.c @@ -10,7 +10,7 @@ // RUN: sed "s/.dylib.*/.dylib/"` \ // RUN: | grep " T " | sed "s/.* T //" \ // RUN: | grep "__asan_" | sed "s/___asan_/__asan_/" \ -// RUN: | sed "s/__asan_init_v[0-9]\+/__asan_init/" \ +// RUN: | sed -E "s/__asan_init_v[0-9]+/__asan_init/" \ // RUN: | grep -v "__asan_malloc_hook" \ // RUN: | grep -v "__asan_free_hook" \ // RUN: | grep -v "__asan_default_options" \ diff --git a/compiler-rt/test/asan/TestCases/Linux/interface_symbols_linux.c b/compiler-rt/test/asan/TestCases/Linux/interface_symbols_linux.c index 4743717..4ff52d3 100644 --- a/compiler-rt/test/asan/TestCases/Linux/interface_symbols_linux.c +++ b/compiler-rt/test/asan/TestCases/Linux/interface_symbols_linux.c @@ -3,7 +3,7 @@ // RUN: %clang_asan -O2 %s -o %t.exe // RUN: nm -D %t.exe | grep " T " | sed "s/.* T //" \ // RUN: | grep "__asan_" | sed "s/___asan_/__asan_/" \ -// RUN: | sed "s/__asan_init_v[0-9]\+/__asan_init/" \ +// RUN: | sed -E "s/__asan_init_v[0-9]+/__asan_init/" \ // RUN: | grep -v "__asan_malloc_hook" \ // RUN: | grep -v "__asan_free_hook" \ // RUN: | grep -v "__asan_default_options" \ -- 2.7.4