diff options
| author | David Carlier <devnexen@gmail.com> | 2019-01-02 19:07:27 +0000 |
|---|---|---|
| committer | David Carlier <devnexen@gmail.com> | 2019-01-02 19:07:27 +0000 |
| commit | 205b7093669382fe21554bdfb325a8e17b379e03 (patch) | |
| tree | 51d27d7181206fb633277bb41da8cefc184cfedc | |
| parent | 5eade7ab3c930514f701b033026574771d0cab8b (diff) | |
| download | bcm5719-llvm-205b7093669382fe21554bdfb325a8e17b379e03.tar.gz bcm5719-llvm-205b7093669382fe21554bdfb325a8e17b379e03.zip | |
[Sanitizer] Enable funopen on FreeBSD
Reviewers: krytarowski
Reviewed By: krytarowski
Differential Revision: https://reviews.llvm.org/D56209
llvm-svn: 350248
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h | 2 | ||||
| -rw-r--r-- | compiler-rt/test/sanitizer_common/TestCases/Posix/funopen.cc (renamed from compiler-rt/test/sanitizer_common/TestCases/NetBSD/funopen.cc) | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h index 1c60e514a1a..c27a62e7623 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h @@ -551,7 +551,7 @@ #define SANITIZER_INTERCEPT_POPEN SI_POSIX #define SANITIZER_INTERCEPT_POPENVE SI_NETBSD #define SANITIZER_INTERCEPT_PCLOSE SI_POSIX -#define SANITIZER_INTERCEPT_FUNOPEN SI_NETBSD +#define SANITIZER_INTERCEPT_FUNOPEN (SI_NETBSD || SI_FREEBSD) #define SANITIZER_INTERCEPT_FUNOPEN2 SI_NETBSD #endif // #ifndef SANITIZER_PLATFORM_INTERCEPTORS_H diff --git a/compiler-rt/test/sanitizer_common/TestCases/NetBSD/funopen.cc b/compiler-rt/test/sanitizer_common/TestCases/Posix/funopen.cc index 6c0e6c22fc9..7d32830be37 100644 --- a/compiler-rt/test/sanitizer_common/TestCases/NetBSD/funopen.cc +++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/funopen.cc @@ -10,6 +10,8 @@ // CHECK-NEXT: SEEK CALLED; off=100, whence=0 // CHECK-NEXT: READ CALLED; len={{[0-9]*}} // CHECK-NEXT: READ: test +// +// UNSUPPORTED: linux. darwin, solaris #include <assert.h> #include <stdio.h> |

