diff options
author | Maxim Ostapenko <chefmax7@gmail.com> | 2017-02-03 11:57:26 +0000 |
---|---|---|
committer | Maxim Ostapenko <chefmax7@gmail.com> | 2017-02-03 11:57:26 +0000 |
commit | 7ef564f927b3e66667155108bd2d12e7b23e5311 (patch) | |
tree | c34ebf5e831097bba101264d0c0e272c087d13ee /test/sanitizer_common/TestCases/Linux/sem_init_glibc.cc | |
parent | 72f3fa45b84762663862c07ac52a54ed1e633cd6 (diff) |
[lsan] Disable sem_init_glibc.cc testcase for LSan x86.
This test relies on sanitizer common interceptor to pick the oldest version of
sem_init function from Glibc. But LSan actually doesn't intercept sem_init, thus
the new implementation is called that causes test failure. Disable it for LSan x86,
the proper fix would require to check Glibc version at runtime and adjust
GET_SEM_VALUE(V) accordingly.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@294001 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/sanitizer_common/TestCases/Linux/sem_init_glibc.cc')
-rw-r--r-- | test/sanitizer_common/TestCases/Linux/sem_init_glibc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sanitizer_common/TestCases/Linux/sem_init_glibc.cc b/test/sanitizer_common/TestCases/Linux/sem_init_glibc.cc index ff1ddc432..92557b759 100644 --- a/test/sanitizer_common/TestCases/Linux/sem_init_glibc.cc +++ b/test/sanitizer_common/TestCases/Linux/sem_init_glibc.cc @@ -1,7 +1,7 @@ // RUN: %clangxx -O0 -g %s -lutil -o %t && %run %t // This test depends on the glibc layout of struct sem_t and checks that we // don't leave sem_t::private uninitialized. -// UNSUPPORTED: android +// UNSUPPORTED: android, lsan-x86 #include <features.h> #include <assert.h> #include <semaphore.h> |