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 | 490c508b1dcb17eb3b63bd4b80455d8bdd84d17f (patch) | |
| tree | 18fdb51000ca6d74cbd1bd2644f28ca68ea99ea5 | |
| parent | a9941857579f17057994a270dba17fee6b9fd281 (diff) | |
| download | bcm5719-llvm-490c508b1dcb17eb3b63bd4b80455d8bdd84d17f.tar.gz bcm5719-llvm-490c508b1dcb17eb3b63bd4b80455d8bdd84d17f.zip | |
[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.
llvm-svn: 294001
| -rw-r--r-- | compiler-rt/test/sanitizer_common/TestCases/Linux/sem_init_glibc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/sem_init_glibc.cc b/compiler-rt/test/sanitizer_common/TestCases/Linux/sem_init_glibc.cc index ff1ddc432d4..92557b7592c 100644 --- a/compiler-rt/test/sanitizer_common/TestCases/Linux/sem_init_glibc.cc +++ b/compiler-rt/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> |

