From 53e047de9ed62854cbd887768cd2bac1bb8a531a Mon Sep 17 00:00:00 2001 From: Viktor Kutuzov Date: Fri, 24 Apr 2015 07:54:38 +0000 Subject: [PATCH] [Msan] XFAIL the ftime.cc test on FreeBSD Differential Revision: http://reviews.llvm.org/D9222 llvm-svn: 235704 --- compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h | 2 +- compiler-rt/test/msan/ftime.cc | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h index bdd9af5..9a6c0c0 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h @@ -227,7 +227,7 @@ #define SANITIZER_INTERCEPT_CAPGET SI_LINUX_NOT_ANDROID #define SANITIZER_INTERCEPT_AEABI_MEM SI_LINUX && defined(__arm__) #define SANITIZER_INTERCEPT___BZERO SI_MAC -#define SANITIZER_INTERCEPT_FTIME SI_NOT_WINDOWS +#define SANITIZER_INTERCEPT_FTIME !SI_FREEBSD && SI_NOT_WINDOWS #define SANITIZER_INTERCEPT_XDR SI_LINUX_NOT_ANDROID #define SANITIZER_INTERCEPT_TSEARCH SI_LINUX_NOT_ANDROID || SI_MAC #define SANITIZER_INTERCEPT_LIBIO_INTERNALS SI_LINUX_NOT_ANDROID diff --git a/compiler-rt/test/msan/ftime.cc b/compiler-rt/test/msan/ftime.cc index 5ed9358..7a5a2fb 100644 --- a/compiler-rt/test/msan/ftime.cc +++ b/compiler-rt/test/msan/ftime.cc @@ -1,5 +1,8 @@ // RUN: %clangxx_msan -O0 -g %s -o %t && %run %t +// ftime() is deprecated on FreeBSD. +// XFAIL: freebsd + #include #include -- 2.7.4