From fdde5a97a71b142297d7b2270c2a7f564a37dbae Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Mon, 10 Jun 2013 14:17:08 +0000 Subject: [PATCH] [ASan] mark ioctl test as xfailing on darwin. remove redundant semicolons git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183655 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/asan/asan_interceptors.cc | 4 ++-- lib/asan/lit_tests/TestCases/ioctl.cc | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/asan/asan_interceptors.cc b/lib/asan/asan_interceptors.cc index bfd82b4a1..bdeb4c036 100644 --- a/lib/asan/asan_interceptors.cc +++ b/lib/asan/asan_interceptors.cc @@ -176,7 +176,7 @@ INTERCEPTOR(int, sigaction, int signum, const struct sigaction *act, #elif SANITIZER_POSIX // We need to have defined REAL(sigaction) on posix systems. DEFINE_REAL(int, sigaction, int signum, const struct sigaction *act, - struct sigaction *oldact); + struct sigaction *oldact) #endif // ASAN_INTERCEPT_SIGNAL_AND_SIGACTION #if ASAN_INTERCEPT_SWAPCONTEXT @@ -381,7 +381,7 @@ INTERCEPTOR(char*, index, const char *string, int c) DECLARE_REAL(char*, index, const char *string, int c) OVERRIDE_FUNCTION(index, strchr); # else -DEFINE_REAL(char*, index, const char *string, int c); +DEFINE_REAL(char*, index, const char *string, int c) # endif # endif #endif // ASAN_INTERCEPT_INDEX diff --git a/lib/asan/lit_tests/TestCases/ioctl.cc b/lib/asan/lit_tests/TestCases/ioctl.cc index 08215df6f..bf2772d98 100644 --- a/lib/asan/lit_tests/TestCases/ioctl.cc +++ b/lib/asan/lit_tests/TestCases/ioctl.cc @@ -4,6 +4,9 @@ // RUN: %clangxx_asan -O0 -g %s -o %t && %t // RUN: %clangxx_asan -O3 -g %s -o %t && %t +// See https://code.google.com/p/address-sanitizer/issues/detail?id=195 +// XFAIL: darwin + #include #include #include -- 2.11.4.GIT