summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix checks for Android.Dan Albert2014-10-201-4/+4
| | | | | | | | | | | | __ANDROID__ is a define that comes from the toolchain when building for Android targets. ANDROID has a different meaning. ANDROID is defined for _every_ Android build, including those done for host modules. For host modules, we want to build the regular Linux sanitizers and builtins, not the one for Android devices. This hasn't been a problem until now because we only just started building the sanitizers for the host. llvm-svn: 220203
* [compiler-rt] compiler-rt's CMake append_if function clashes with LLVM's, ↵Kuba Brecka2014-10-151-8/+8
| | | | | | | | | | let's rename it to append_list_if Doing s/append_if/append_list_if/, no functional change. http://reviews.llvm.org/D5739 llvm-svn: 219860
* Fix silly commit to disable test on ARMRenato Golin2014-10-141-1/+1
| | | | llvm-svn: 219681
* Disable failing ASAN LongJump test on ARMRenato Golin2014-10-141-3/+3
| | | | | | | Updated the URL to reflect information on the problem as well as build the case for ARM. This seems to be a wider problem, not ARM or PPC specific. llvm-svn: 219680
* [sanitizer] Android build cleanup.Evgeniy Stepanov2014-09-291-31/+37
| | | | | | | | | | | | * Detect Android toolchain target arch and set correct runtime library name. * Merged a lot of Android and non-Android code paths. * Android is only supported in standalone build of compiler-rt now. * Linking lsan-common in ASan-Android (makes lsan annotations work). * Relying on -fsanitize=address linker flag when building tests (again, unification with non-Android path). * Runtime library moved from lib/asan to lib/linux. llvm-svn: 218605
* [asan] Fix one test on Android-L.Evgeniy Stepanov2014-09-231-1/+2
| | | | | | index() is deprecated. llvm-svn: 218312
* Avoid calling strtoll and atoll in asan_str_test.cc on Windows for nowEhsan Akhgari2014-09-151-15/+15
| | | | | | | | | | | | | | | | | | Summary: These two functions are unavailable on MSVC2012, which breaks building the ASAN tests with MSVC2012. Since the tests required to run these functions are disabled on Windows for now, avoid building them to fix the MSVC2012 builds. Test Plan: This is needed in order to fix building the ASAN tests with MSVC2012. Reviewers: timurrrr Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D5343 llvm-svn: 217763
* Fixup Android tests build rulesAlexey Samsonov2014-08-091-1/+1
| | | | llvm-svn: 215264
* [asan] End-to-end test for REP MOVS instrumentation.Evgeniy Stepanov2014-07-311-0/+53
| | | | | | Patch by Yuri Gorshenin. llvm-svn: 214396
* Generalize sanitizer allocator public interface.Alexey Samsonov2014-07-072-32/+37
| | | | | | | | | | | | | | Introduce new public header <sanitizer/allocator_interface.h> and a set of functions __sanitizer_get_ownership(), __sanitizer_malloc_hook() etc. that will eventually replace their tool-specific equivalents (__asan_get_ownership(), __msan_get_ownership() etc.). Tool-specific functions are now deprecated and implemented as stubs redirecting to __sanitizer_ versions (which are implemented differently in each tool). Replace all uses of __xsan_ versions with __sanitizer_ versions in unit and lit tests. llvm-svn: 212469
* [asan] Remove runtime assembly helpers.Evgeniy Stepanov2014-07-071-54/+8
| | | | | | | | Remove helper functions that were used in assembly instrumentation. Patch by Yuri Gorshenin. llvm-svn: 212456
* Exclude Android from the tests for valloc/pvalloc.Dan Albert2014-06-141-1/+2
| | | | | | | These functions are being removed from Android because they were removed from POSIX 2004. llvm-svn: 210962
* [asan] Use -pthread instead of -lpthread in tests.Evgeniy Stepanov2014-06-051-2/+2
| | | | llvm-svn: 210255
* [Sanitizers Win] Move duplicate Windows-specific compiler flags to a common ↵Timur Iskhodzhanov2014-05-301-15/+1
| | | | | | | | CMake variable Reviewed at http://reviews.llvm.org/D3952 llvm-svn: 209889
* [ASan/Win] Use clang rather than clang-cl by default for lit tests. Make ↵Timur Iskhodzhanov2014-05-281-7/+12
| | | | | | | | Windows-only tests explicitly use clang-cl. Reviewed at http://reviews.llvm.org/D3893 llvm-svn: 209719
* [asan] fix a test following r209508Kostya Serebryany2014-05-231-1/+3
| | | | llvm-svn: 209509
* [asan] relax the test for long doubleKostya Serebryany2014-05-221-2/+2
| | | | llvm-svn: 209445
* [asan] Fix x86 asm instrumentation to preserve flags.Evgeniy Stepanov2014-05-212-0/+43
| | | | | | | | | This change also enables asm instrumentation in asan tests that was accidentally disabled yearlier, and adds a sanity test for that. Patch by Yuri Gorshenin. llvm-svn: 209282
* [Sanitizer tests] Don't need to use -lstdc++ thanks to --driver-mode=g++Timur Iskhodzhanov2014-05-191-3/+0
| | | | | | Reviewed at http://reviews.llvm.org/D3796 llvm-svn: 209115
* [Sanitizer tests] Add sanitizer_test_config.h to make the inclusion of ↵Timur Iskhodzhanov2014-05-132-7/+1
| | | | | | | | gtest.h conditional Reviewed at http://reviews.llvm.org/D3744 llvm-svn: 208696
* [Sanitizer/ASan tests] Automatically detect the presence of libstdc++Timur Iskhodzhanov2014-05-131-1/+3
| | | | llvm-svn: 208695
* [ASan tests] Add Windows-specific flags to lib/asan/tests/CMakeLists.txtTimur Iskhodzhanov2014-05-131-9/+34
| | | | | | Reviewed at http://reviews.llvm.org/D3720 llvm-svn: 208682
* [Sanitizer tests] Make simple pthread tests compile and pass on WindowsTimur Iskhodzhanov2014-05-131-8/+5
| | | | | | Reviewed at http://reviews.llvm.org/D3725 llvm-svn: 208674
* [ASan] Split static ASan runtime in two parts: asan and asan_cxx.Alexey Samsonov2014-05-121-1/+2
| | | | | | | | | | | asan_cxx containts replacements for new/delete operators, and should only be linked in C++ mode. We plan to start building this part with exception support to make new more standard-compliant. See https://code.google.com/p/address-sanitizer/issues/detail?id=295 for more details. llvm-svn: 208609
* [ASan tests] Don't define __asan_default_options in tests on Windows as it ↵Timur Iskhodzhanov2014-05-121-0/+2
| | | | | | is not supported llvm-svn: 208575
* [ASan tests] Exclude/simplify a bunch of tests to make them build on WindowsTimur Iskhodzhanov2014-05-121-10/+45
| | | | | | (This also requires D3720, D3725 and a few more small changes to land) llvm-svn: 208573
* [ASan tests] Don't run FakeStack.CreateDestroy on Windows as it OOMsTimur Iskhodzhanov2014-05-121-0/+2
| | | | llvm-svn: 208572
* [ASan tests] Use the proper attribute on RunStrChrTest helper functions to ↵Timur Iskhodzhanov2014-05-121-2/+2
| | | | | | avoid "unused function" warnings llvm-svn: 208568
* [ASan tests] Fix non-Windows breakageTimur Iskhodzhanov2014-05-081-2/+5
| | | | llvm-svn: 208332
* [ASan tests] More progress towards Windows supportTimur Iskhodzhanov2014-05-081-20/+37
| | | | llvm-svn: 208326
* [ASan tests] More progress towards Windows supportTimur Iskhodzhanov2014-05-081-0/+13
| | | | llvm-svn: 208325
* [ASan tests] More progress towards Windows supportTimur Iskhodzhanov2014-05-081-1/+4
| | | | llvm-svn: 208323
* [ASan tests] Auto-define ASAN_NEEDS_SEGV rather than hardcode it in cmakeTimur Iskhodzhanov2014-05-082-2/+5
| | | | llvm-svn: 208322
* [ASan] Update sanitizer_common and asan test_util headers to support ↵Timur Iskhodzhanov2014-05-081-3/+6
| | | | | | building on Windows llvm-svn: 208306
* Fix building Asan and common sanitizers tests on FreeBSD 9.2Viktor Kutuzov2014-04-281-0/+5
| | | | llvm-svn: 207408
* [asan] add one more mode to run asan tests with '-with-calls', i.e. using ↵Kostya Serebryany2014-04-211-20/+22
| | | | | | -mllvm -asan-instrumentation-with-call-threshold=0. This is very unfortunate since it effectively doubles the number of gunit asan tests that need to be built and run, but as long as we need out-lined calls (PR17409) I see no other way to test this workaround llvm-svn: 206742
* [asan] Reenable tests that should pass since PR19207 is fixed.Evgeniy Stepanov2014-04-181-5/+3
| | | | llvm-svn: 206593
* [ASan] Change AddressSanitizer.LoadStoreCallbacks to use asan_malloc and ↵Alexander Potapenko2014-04-171-2/+11
| | | | | | | | | asan_free. Interceptors don't really work on OSX in asan_noinst_test.cc (this is more or less intentional), so one shouldn't call intercepted functions in this test -- added a comment about this. llvm-svn: 206477
* [asan] fix a bug in outlined asan checks and in the corresponding test (ouch)Kostya Serebryany2014-04-171-1/+2
| | | | llvm-svn: 206470
* [asan] add __asan_load1/__asan_store1/... callbacks to asan-rt; together ↵Kostya Serebryany2014-04-161-0/+37
| | | | | | with -mllvm -asan-instrumentation-with-call-threshold=N this will be a workaround for PR17409 llvm-svn: 206387
* [ASan] Optional support for dynamic ASan runtime on Linux.Alexey Samsonov2014-04-011-0/+16
| | | | | | Based on http://llvm-reviews.chandlerc.com/D3042 by Yuri Gribov! llvm-svn: 205308
* [CMake] Rename the variableAlexey Samsonov2014-03-241-1/+1
| | | | llvm-svn: 204602
* [CMake] Respect CMAKE_CXX_FLAGS in custom clang_compile commandsAlexey Samsonov2014-03-241-5/+3
| | | | llvm-svn: 204593
* [asan] Disable setjmp/sigsetjmp tests.Evgeniy Stepanov2014-03-241-3/+5
| | | | | | Failing due to PR19207. llvm-svn: 204590
* [asan] Fix a comment.Evgeniy Stepanov2014-03-241-2/+3
| | | | llvm-svn: 204589
* [CMake] Fix build of ASan tests on MacAlexey Samsonov2014-03-191-4/+3
| | | | llvm-svn: 204238
* [CMake] Build sanitizer unit tests with -std=c++11Alexey Samsonov2014-03-191-0/+1
| | | | llvm-svn: 204234
* [CMake] Make append_if semantics similar to those used in LLVMAlexey Samsonov2014-03-131-3/+3
| | | | llvm-svn: 203773
* [ASan] Better way to disable tests for functions unavailable on certain ↵Alexey Samsonov2014-03-072-31/+14
| | | | | | platforms llvm-svn: 203224
* [CMake] Test for libdl and libpthread presenceAlexey Samsonov2014-03-041-5/+3
| | | | llvm-svn: 202847
OpenPOWER on IntegriCloud