[llvm-commits] [compiler-rt] r169660 - /compiler-rt/trunk/lib/asan/lit_tests/interface_symbols.c

Alexey Samsonov samsonov at google.com
Fri Dec 7 17:12:13 PST 2012


Author: samsonov
Date: Fri Dec  7 19:12:12 2012
New Revision: 169660

URL: http://llvm.org/viewvc/llvm-project?rev=169660&view=rev
Log:
ASan: fix interface-symbols test on Mac by explicitly listing all weak functions

Modified:
    compiler-rt/trunk/lib/asan/lit_tests/interface_symbols.c

Modified: compiler-rt/trunk/lib/asan/lit_tests/interface_symbols.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/interface_symbols.c?rev=169660&r1=169659&r2=169660&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/interface_symbols.c (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/interface_symbols.c Fri Dec  7 19:12:12 2012
@@ -2,7 +2,12 @@
 
 // RUN: %clang -fsanitize=address -dead_strip -O2 %s -o %t.exe
 // RUN: nm %t.exe | grep " T " | sed "s/.* T //" \
-// RUN:    | grep "__asan_" | sed "s/___asan_/__asan_/" > %t.symbols
+// RUN:    | grep "__asan_" | sed "s/___asan_/__asan_/" \
+// RUN:    | grep -v "__asan_malloc_hook" \
+// RUN:    | grep -v "__asan_free_hook" \
+// RUN:    | grep -v "__asan_symbolize" \
+// RUN:    | grep -v "__asan_default_options" \
+// RUN:    | grep -v "__asan_on_error" > %t.symbols
 // RUN: cat %p/../../../include/sanitizer/asan_interface.h \
 // RUN:    | sed "s/\/\/.*//" | sed "s/typedef.*//" \
 // RUN:    | grep -v "OPTIONAL" \





More information about the llvm-commits mailing list