diff options
author | Timur Iskhodzhanov <timurrrr@google.com> | 2014-07-16 12:56:47 +0000 |
---|---|---|
committer | Timur Iskhodzhanov <timurrrr@google.com> | 2014-07-16 12:56:47 +0000 |
commit | b84dd55cab068d8287764588f0e74a159c7c87b2 (patch) | |
tree | f51350ab798160f22419f970c1d7f26418373a4f | |
parent | 4335312dfd70d7fabf6d178f971bf2aa2dce5426 (diff) | |
download | compiler-rt-b84dd55cab068d8287764588f0e74a159c7c87b2.tar.gz |
[ASan] Adjust 'sed' invocation to work on OS X
This is a follow-up to r213053
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213144 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/asan/TestCases/Darwin/interface_symbols_darwin.c | 2 | ||||
-rw-r--r-- | test/asan/TestCases/Linux/interface_symbols_linux.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/asan/TestCases/Darwin/interface_symbols_darwin.c b/test/asan/TestCases/Darwin/interface_symbols_darwin.c index 92a1c4d3e..fb9ede3d8 100644 --- a/test/asan/TestCases/Darwin/interface_symbols_darwin.c +++ b/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/test/asan/TestCases/Linux/interface_symbols_linux.c b/test/asan/TestCases/Linux/interface_symbols_linux.c index 474371731..4ff52d374 100644 --- a/test/asan/TestCases/Linux/interface_symbols_linux.c +++ b/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" \ |