[llvm-dev] [PATCH compiler-rt 3/5] lsan: do not expect leaks in coroutines to be not reported

Paweł Dziepak via llvm-dev llvm-dev at lists.llvm.org
Tue Feb 2 06:42:41 PST 2016


With improved support for swapcontext() and friends lsan may be able
to report some of the leaks that happened in coroutines.
---
 test/lsan/TestCases/swapcontext.cc | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/test/lsan/TestCases/swapcontext.cc b/test/lsan/TestCases/swapcontext.cc
index f7e95ed..ece0db8 100644
--- a/test/lsan/TestCases/swapcontext.cc
+++ b/test/lsan/TestCases/swapcontext.cc
@@ -1,8 +1,4 @@
-// We can't unwind stack if we're running coroutines on heap-allocated
-// memory. Make sure we don't report these leaks.
-
 // RUN: %clangxx_lsan %s -o %t
-// RUN: %run %t 2>&1
 // RUN: not %run %t foo 2>&1 | FileCheck %s
 
 #include <stdio.h>
-- 
2.5.0



More information about the llvm-dev mailing list