[compiler-rt] r213144 - [ASan] Adjust 'sed' invocation to work on OS X

Timur Iskhodzhanov timurrrr at google.com
Wed Jul 16 05:57:01 PDT 2014


Author: timurrrr
Date: Wed Jul 16 07:56:47 2014
New Revision: 213144

URL: http://llvm.org/viewvc/llvm-project?rev=213144&view=rev
Log:
[ASan] Adjust 'sed' invocation to work on OS X

This is a follow-up to r213053

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

Modified: compiler-rt/trunk/test/asan/TestCases/Darwin/interface_symbols_darwin.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Darwin/interface_symbols_darwin.c?rev=213144&r1=213143&r2=213144&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Darwin/interface_symbols_darwin.c (original)
+++ compiler-rt/trunk/test/asan/TestCases/Darwin/interface_symbols_darwin.c Wed Jul 16 07:56:47 2014
@@ -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" \

Modified: compiler-rt/trunk/test/asan/TestCases/Linux/interface_symbols_linux.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/interface_symbols_linux.c?rev=213144&r1=213143&r2=213144&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/interface_symbols_linux.c (original)
+++ compiler-rt/trunk/test/asan/TestCases/Linux/interface_symbols_linux.c Wed Jul 16 07:56:47 2014
@@ -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" \





More information about the llvm-commits mailing list