Skip to content

Commit 04dbb63

Browse files
committed
[lsan][test] Enable many_tls_keys_pthread.cpp and disable swapcontext.cpp/fork_and_leak.cpp
With D98926, many_tls_keys_pthread.cpp appears to be working. On glibc 2.30-0ubuntu2, swapcontext.cpp and Linux/fork_and_leak.cpp work fine but they strangely fail on clang-cmake-aarch64-full (https://lab.llvm.org/buildbot/#/builders/7/builds/2240). Disable them for now. Note: check-lsan was recently enabled on AArch64 in D98985. A test takes 10+ seconds. We should figure out the bottleneck.
1 parent af0087c commit 04dbb63

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

compiler-rt/test/lsan/TestCases/Linux/fork_and_leak.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// Test that leaks detected after forking without exec().
22
// RUN: %clangxx_lsan %s -o %t && not %run %t 2>&1 | FileCheck %s
33

4+
/// Fails on clang-cmake-aarch64-full (glibc 2.27-3ubuntu1.4).
5+
// UNSUPPORTED: aarch64
6+
47
#include <assert.h>
58
#include <stdlib.h>
69
#include <sys/wait.h>

compiler-rt/test/lsan/TestCases/many_tls_keys_pthread.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
// On glibc, this requires the range returned by GetTLS to include
99
// specific_1stblock and specific in `struct pthread`.
10-
// UNSUPPORTED: arm-linux, armhf-linux, aarch64
10+
// UNSUPPORTED: arm-linux, armhf-linux
1111

1212
// TSD on NetBSD does not use TLS
1313
// UNSUPPORTED: netbsd

compiler-rt/test/lsan/TestCases/swapcontext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: %env_lsan_opts= %run %t 2>&1
66
// RUN: %env_lsan_opts= not %run %t foo 2>&1 | FileCheck %s
77
// Missing 'getcontext' and 'makecontext' on Android.
8-
// UNSUPPORTED: arm,powerpc64,android
8+
// UNSUPPORTED: arm,aarch64,powerpc64,android
99

1010
#include "sanitizer_common/sanitizer_ucontext.h"
1111
#include <stdio.h>

0 commit comments

Comments
 (0)