[PATCH] D14798: [LSan] Fix tests with some libstdc++ implementations.
Alexey Samsonov via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 18 17:36:18 PST 2015
samsonov created this revision.
samsonov added reviewers: kcc, ygribov.
samsonov added a subscriber: llvm-commits.
Newer libstdc++ has global pool, which is filled with objects
allocated during libstdc++ initialization, and never released.
Using use_globals=0 in the lit tests results in these objects
being treated as leaks.
Fix this by porting several tests to plain C, and introducing
a simple sanity test case for __lsan::ScopedDisabler.
http://reviews.llvm.org/D14798
Files:
test/lsan/TestCases/cleanup_in_tsd_destructor.c
test/lsan/TestCases/cleanup_in_tsd_destructor.cc
test/lsan/TestCases/disabler.c
test/lsan/TestCases/disabler.cc
test/lsan/TestCases/disabler_in_tsd_destructor.c
test/lsan/TestCases/disabler_in_tsd_destructor.cc
test/lsan/TestCases/ignore_object.c
test/lsan/TestCases/ignore_object.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14798.40583.patch
Type: text/x-patch
Size: 3711 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151119/a105929d/attachment.bin>
More information about the llvm-commits
mailing list