[compiler-rt] r293710 - [sanitizer] Fix interface test on Darwin, failing after 293682.
Marcos Pividori via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 31 14:57:51 PST 2017
Author: mpividori
Date: Tue Jan 31 16:57:50 2017
New Revision: 293710
URL: http://llvm.org/viewvc/llvm-project?rev=293710&view=rev
Log:
[sanitizer] Fix interface test on Darwin, failing after 293682.
The test was failing because we export the functions: "__sanitizer_mz*" but they
are not included in the general interface lists.
Also, weak undefined symbols are tagged with U by `nm -g` on Darwin.
Differential Revision: https://reviews.llvm.org/D29345
Modified:
compiler-rt/trunk/test/asan/TestCases/Darwin/interface_symbols_darwin.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=293710&r1=293709&r2=293710&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 Tue Jan 31 16:57:50 2017
@@ -4,10 +4,13 @@
// RUN: %clang_asan -dead_strip -O2 %s -o %t.exe
//
+// note: we can not use -D on Darwin.
// RUN: nm -g `%clang_asan %s -fsanitize=address -### 2>&1 | grep "libclang_rt.asan_osx_dynamic.dylib" | sed -e 's/.*"\(.*libclang_rt.asan_osx_dynamic.dylib\)".*/\1/'` \
+// RUN: | grep " [TU] " \
// RUN: | grep -o "\(__asan_\|__ubsan_\|__sancov_\|__sanitizer_\)[^ ]*" \
// RUN: | grep -v "__sanitizer_syscall" \
// RUN: | grep -v "__sanitizer_weak_hook" \
+// RUN: | grep -v "__sanitizer_mz" \
// RUN: | sed -e "s/__asan_version_mismatch_check_v[0-9]+/__asan_version_mismatch_check/" \
// RUN: > %t.exports
//
More information about the llvm-commits
mailing list