[ASan] Adjust 'sed' invocation to work on OS X
authorTimur Iskhodzhanov <timurrrr@google.com>
Wed, 16 Jul 2014 12:56:47 +0000 (12:56 +0000)
committerTimur Iskhodzhanov <timurrrr@google.com>
Wed, 16 Jul 2014 12:56:47 +0000 (12:56 +0000)
This is a follow-up to r213053

llvm-svn: 213144

compiler-rt/test/asan/TestCases/Darwin/interface_symbols_darwin.c
compiler-rt/test/asan/TestCases/Linux/interface_symbols_linux.c

index 92a1c4d..fb9ede3 100644 (file)
@@ -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" \
index 4743717..4ff52d3 100644 (file)
@@ -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" \