[ASan] Use dynamic symbol table when checking exported ASan runtime symbols

llvm-svn: 177868
This commit is contained in:
Alexey Samsonov 2013-03-25 13:47:53 +00:00
parent dbb4adf134
commit 961b636cf1
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
// RUN: %clang -fsanitize=address -dead_strip -O2 %s -o %t.exe
// RUN: rm -f %t.symbols %t.interface
// RUN: nm `otool -L %t.exe | grep "asan_osx_dynamic.dylib" | \
// RUN: nm -D `otool -L %t.exe | grep "asan_osx_dynamic.dylib" | \
// RUN: tr -d '\011' | \
// RUN: sed "s/.dylib.*/.dylib/"` \
// RUN: | grep " T " | sed "s/.* T //" \

View File

@ -1,7 +1,7 @@
// Check the presense of interface symbols in compiled file.
// RUN: %clang -fsanitize=address -O2 %s -o %t.exe
// RUN: nm %t.exe | grep " T " | sed "s/.* T //" \
// RUN: nm -D %t.exe | grep " T " | sed "s/.* T //" \
// RUN: | grep "__asan_" | sed "s/___asan_/__asan_/" \
// RUN: | grep -v "__asan_malloc_hook" \
// RUN: | grep -v "__asan_free_hook" \