summaryrefslogtreecommitdiff
path: root/lib/lsan/lit_tests
Commit message (Collapse)AuthorAge
* [Sanitizer] Unify summary reporting across all sanitizers.Alexey Samsonov2013-11-01
| | | | | | | | | | | This change unifies the summary printing across sanitizers: now each tool uses specific version of ReportErrorSummary() method, which deals with symbolization of the top frame and formatting a summary message. This change modifies the summary line for ASan+LSan mode: now the summary mentions "AddressSanitizer" instead of "LeakSanitizer". git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193864 91177308-0d34-0410-b5e6-96231b3b80d8
* [lsan] Fix bug when discovering indirectly leaked objects.Sergey Matveev2013-10-15
| | | | | | | If an object contains pointers to itself, that doesn't make it indirectly leaked. D'oh! git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192716 91177308-0d34-0410-b5e6-96231b3b80d8
* [lsan] Support ASan's stack-use-after-return mode in LSan.Sergey Matveev2013-10-14
| | | | | | Treat the fake stack as live memory. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192593 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] Improve thread lifetime tracking on POSIX systems.Sergey Matveev2013-10-14
| | | | | | | | Call AsanThread::Destroy() from a late-running TSD destructor. Previously we called it before any user-registered TSD destructors, which caused false positives in LeakSanitizer. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192585 91177308-0d34-0410-b5e6-96231b3b80d8
* [LSan] Don't report leaks with single-frame stack tracesAlexey Samsonov2013-09-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191522 91177308-0d34-0410-b5e6-96231b3b80d8
* ASan, LSan, MSan: try to find llvm-symbolizer binary in PATH if it is not ↵Alexey Samsonov2013-09-03
| | | | | | provided. Now we don't need to explicitly set the location of llvm-symbolizer in lit test configs. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189801 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert r189347: it breaks on machines w/o installed debug versions of system ↵Alexey Samsonov2013-08-27
| | | | | | libraries git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189350 91177308-0d34-0410-b5e6-96231b3b80d8
* LSan: Check that dynamic linker library is properly symbolizedAlexey Samsonov2013-08-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189347 91177308-0d34-0410-b5e6-96231b3b80d8
* Slightly improve lint checker script and fix a few style issuesAlexey Samsonov2013-08-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189092 91177308-0d34-0410-b5e6-96231b3b80d8
* [lsan] Add a regression test for building C code.Sergey Matveev2013-08-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189016 91177308-0d34-0410-b5e6-96231b3b80d8
* [lsan] Add a stress test.Sergey Matveev2013-08-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189012 91177308-0d34-0410-b5e6-96231b3b80d8
* [tests] Update to use lit_config and lit package, as appropriate.Daniel Dunbar2013-08-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188116 91177308-0d34-0410-b5e6-96231b3b80d8
* Enable pipefail for LSan testsAlexey Samsonov2013-08-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187873 91177308-0d34-0410-b5e6-96231b3b80d8
* [lsan] Add leak_check_at_exit flag.Sergey Matveev2013-08-01
| | | | | | | | We needed a way to tell LSan to invoke leak checking only if __do_leak_check() is called explicitly. This can now be achieved by setting leak_check_at_exit=false. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187578 91177308-0d34-0410-b5e6-96231b3b80d8
* Disable pipefail for lsan.Rafael Espindola2013-07-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187274 91177308-0d34-0410-b5e6-96231b3b80d8
* Use --driver-mode=g++ instead of -ccc-cxx; required after Clang r186605Hans Wennborg2013-07-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186607 91177308-0d34-0410-b5e6-96231b3b80d8
* [lsan] Add __lsan_do_leak_check() to the public interface.Sergey Matveev2013-07-18
| | | | | | | Let users override the normal behavior to run leak checking earlier in the process. Also fix a couple nits here and there. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186581 91177308-0d34-0410-b5e6-96231b3b80d8
* [lsan] Fix test.Sergey Matveev2013-07-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185817 91177308-0d34-0410-b5e6-96231b3b80d8
* [lsan] Handle fork() correctly.Sergey Matveev2013-07-08
| | | | | | | | Update the main thread's os_id on every pthread_create, and before initiating leak checking. This ensures that we have the correct os_id even if we have forked after Init(). git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185815 91177308-0d34-0410-b5e6-96231b3b80d8
* Define the path to llvm-symbolizer tool in a common config to reduce copy-pasteAlexey Samsonov2013-06-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185286 91177308-0d34-0410-b5e6-96231b3b80d8
* [lsan] Fix build again.Sergey Matveev2013-06-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185157 91177308-0d34-0410-b5e6-96231b3b80d8
* [lsan] Fix build.Sergey Matveev2013-06-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185156 91177308-0d34-0410-b5e6-96231b3b80d8
* [lsan] Add suppression support.Sergey Matveev2013-06-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185152 91177308-0d34-0410-b5e6-96231b3b80d8
* [lsan] Fix flaky test.Sergey Matveev2013-06-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185079 91177308-0d34-0410-b5e6-96231b3b80d8
* [LSan] Add the way to disable LSan at link timeAlexey Samsonov2013-06-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185066 91177308-0d34-0410-b5e6-96231b3b80d8
* Revert to C-style callbacks for iteration over allocator chunks.Sergey Matveev2013-06-24
| | | | | | | Also clean up LSan code, fix some comments and replace void* with uptr to bring down the number of reinterpret_casts. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184700 91177308-0d34-0410-b5e6-96231b3b80d8
* [asan] Move lsan_disabled out of thread context.Sergey Matveev2013-06-21
| | | | | | Fix for the case where disabler is used in pthread key destructor. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184553 91177308-0d34-0410-b5e6-96231b3b80d8
* [lsan] Move symbolization and reporting out of StopTheWorld callback.Sergey Matveev2013-06-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184303 91177308-0d34-0410-b5e6-96231b3b80d8
* Properly install LSan interface header, rely on sanitizer header presence in ↵Alexey Samsonov2013-06-14
| | | | | | lit tests git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183977 91177308-0d34-0410-b5e6-96231b3b80d8
* [lsan] Harmonized some naming inconsistencies.Sergey Matveev2013-06-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183748 91177308-0d34-0410-b5e6-96231b3b80d8
* [lsan] Fix the unittest makefiles.Sergey Matveev2013-06-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183735 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: fix lint warningsDmitry Vyukov2013-06-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183642 91177308-0d34-0410-b5e6-96231b3b80d8
* [lsan] Implement __lsan_ignore_object().Sergey Matveev2013-06-06
| | | | | | Leak annotation similar to HeapChecker's IgnoreObject(). git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183412 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify lit configs for asan/lsan/msan unit testsAlexey Samsonov2013-06-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183410 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove a bunch of copy-paste: use common config for sanitizer lit/unit testsAlexey Samsonov2013-06-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183407 91177308-0d34-0410-b5e6-96231b3b80d8
* [lsan] Add __lsan_disable() and __lsan_enable().Sergey Matveev2013-06-03
| | | | | | | Objects allocated after a call to __lsan_disable() will be treated as live memory. Also add a ScopedDisabler. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183099 91177308-0d34-0410-b5e6-96231b3b80d8
* [lsan] Run the leak detection tests under both ASan and LSan.Sergey Matveev2013-05-31
| | | | | | | Change the LSan lit test logic. Now "check-lsan" tests the leak checking functionality in both standalone LSan and ASan. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183000 91177308-0d34-0410-b5e6-96231b3b80d8
* [lsan] Convert the remaining LSan tests to output tests.Sergey Matveev2013-05-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182839 91177308-0d34-0410-b5e6-96231b3b80d8
* Exclude sanitizer_nolibc_test from TSan test run. Fix lint warningsAlexey Samsonov2013-05-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182837 91177308-0d34-0410-b5e6-96231b3b80d8
* [lsan] Begin converting LSan tests to output tests.Sergey Matveev2013-05-27
| | | | | | In this CL all old tests are removed and one LIT test is added. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182730 91177308-0d34-0410-b5e6-96231b3b80d8
* Improve support for compiler-rt tests in CMake build.Alexey Samsonov2013-05-27
| | | | | | | | | Now compiler-rt tests run correctly if compiler-rt is checked out into arbitrary directory (not necessarily projects/compiler-rt). Patch by Greg Fitzgerald! git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182726 91177308-0d34-0410-b5e6-96231b3b80d8
* [lsan] Add lit test support.Sergey Matveev2013-05-23
"check-lsan" now runs both the tests from lib/lsan/tests and any lit tests found under lib/lsan/lit_tests. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182583 91177308-0d34-0410-b5e6-96231b3b80d8