diff options
author | Vitaly Buka <vitalybuka@google.com> | 2023-05-08 12:42:50 -0700 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2023-05-11 15:58:04 -0700 |
commit | 20a3c6e84e0955ac20762c35e8c2435017ae967d (patch) | |
tree | 9a93fd5d3688fad7911ba1c8e561996add4d6b76 /compiler-rt/test | |
parent | 901183b5964c84d3ab6a3896b2c0ced7ffbd00f5 (diff) | |
download | llvm-20a3c6e84e0955ac20762c35e8c2435017ae967d.tar.gz |
[LSAN] Use ThreadArgRetval in LSAN
Fixes false leaks on thread retval.
Reviewed By: thurston
Differential Revision: https://reviews.llvm.org/D150165
Diffstat (limited to 'compiler-rt/test')
-rw-r--r-- | compiler-rt/test/lsan/TestCases/create_thread_leak.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler-rt/test/lsan/TestCases/create_thread_leak.cpp b/compiler-rt/test/lsan/TestCases/create_thread_leak.cpp index 4074cd4e540e..92e70b2e37c3 100644 --- a/compiler-rt/test/lsan/TestCases/create_thread_leak.cpp +++ b/compiler-rt/test/lsan/TestCases/create_thread_leak.cpp @@ -4,10 +4,7 @@ // RUN: %run not %t 10 1 0 0 2>&1 | FileCheck %s --check-prefixes=LEAK,LEAK123 // RUN: %run not %t 10 0 1 0 2>&1 | FileCheck %s --check-prefixes=LEAK,LEAK234 // RUN: %run not %t 10 0 0 1 2>&1 | FileCheck %s --check-prefixes=LEAK,LEAK234 - -// FIXME: Remove "not". There is no leak. -// False LEAK234 is broken for LSAN. -// RUN: %run %if lsan-standalone %{ not %} %t 10 0 0 0 +// RUN: %run %t 10 0 0 0 #include <pthread.h> #include <stdlib.h> |