summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/tests/asan_test_utils.h
Commit message (Collapse)AuthorAgeFilesLines
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* NetBSD compatibility nit in asan_test_utils.hKamil Rytarowski2017-08-081-1/+1
| | | | | | | | | | | | | | | | | | | | | Summary: Do not include <malloc.h> on NetBSD, as this header serves on this OS backward compatibility with K&R alias for <stdlib.h>. Sponsored by <The NetBSD Foundation> Reviewers: vitalybuka, kcc, joerg, filcab, fjricci Reviewed By: vitalybuka Subscribers: kubamracek, llvm-commits, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D36469 llvm-svn: 310391
* Include setjmp.h unconditionally in asan_test_utils.hHans Wennborg2017-05-171-1/+1
| | | | | | | | | | | | | | | | | It's used in asan_test.cc also on Windows, and my build was failing with: C:/src/llvm/projects/compiler-rt/lib/asan/tests/asan_test.cc:549:28: error: unknown type name 'jmp_buf' NOINLINE void LongJmpFunc1(jmp_buf buf) { ^ C:/src/llvm/projects/compiler-rt/lib/asan/tests/asan_test.cc:569:10: error: unknown type name 'jmp_buf' static jmp_buf buf; ^ I couldn't find what changed to make this not work anymore, but this should fix it. llvm-svn: 303273
* Decrease kLargeMalloc block size in ASAN unit tests.Evgeniy Stepanov2016-12-281-1/+3
| | | | | | | | | | | | | | | | | Summary: Make kLargeMalloc big enough to be handled by secondary allocator and small enough to fit into quarantine for all configurations. It become too big to fit into quarantine on Android after D27873. Reviewers: eugenis Patch by Alex Shlyapnikov. Subscribers: danalbert, llvm-commits, kubabrecka Differential Revision: https://reviews.llvm.org/D28142 llvm-svn: 290689
* [Sanitizer tests] Add sanitizer_test_config.h to make the inclusion of ↵Timur Iskhodzhanov2014-05-131-1/+1
| | | | | | | | gtest.h conditional Reviewed at http://reviews.llvm.org/D3744 llvm-svn: 208696
* [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] Update sanitizer_common and asan test_util headers to support ↵Timur Iskhodzhanov2014-05-081-3/+6
| | | | | | building on Windows llvm-svn: 208306
* A set of trivial changes to support sanitizers on FreeBSD.Alexey Samsonov2014-03-041-1/+1
| | | | | | Patch by Viktor Kutuzov! llvm-svn: 202801
* [asan] require __i686__ for the SSE test; also make weaker claims about ↵Kostya Serebryany2013-12-041-4/+0
| | | | | | stack buffer overflows in another test llvm-svn: 196375
* [asan] revert 196373: committed to many files by mistakeKostya Serebryany2013-12-041-0/+4
| | | | llvm-svn: 196374
* [asan] require __i686__ for the SSE test; also make weaker claims about ↵Kostya Serebryany2013-12-041-4/+0
| | | | | | stack buffer overflows in another test llvm-svn: 196373
* [asan] use short path for sanitizer_common/tests/sanitizer_test_utils.h, add ↵Kostya Serebryany2013-02-141-1/+1
| | | | | | -I sanitizer_common/tests to asan/tests/CMakeLists.txt llvm-svn: 175142
* [asan] run-time tests for adaptive redzones Kostya Serebryany2013-01-241-0/+3
| | | | llvm-svn: 173336
* [asan] simplify the code that poisons global redzones, add some more testsKostya Serebryany2013-01-231-0/+19
| | | | llvm-svn: 173251
* [asan] split asan_test.cc moreKostya Serebryany2013-01-221-0/+10
| | | | llvm-svn: 173130
* [asan] split asan_test.cc to speedup parallel build (most important if ↵Kostya Serebryany2013-01-221-0/+50
| | | | | | building with a debug clang, which takes a couple of minutes on this large file with templates). More splits to follow llvm-svn: 173129
* Move large part of asan_test_utils.h to sanitizer_common.Evgeniy Stepanov2013-01-141-47/+1
| | | | | | | | | Move my_rand() to the common header. This lets us avoid the use of rand_r in sanitizer_common tests. There is no rand_r on Android. llvm-svn: 172421
* ASan: add new interface functions - __asan_(un)poison_stack_memory. Calls to ↵Alexey Samsonov2012-12-041-1/+1
| | | | | | these functions are inserted by the instrumentation pass in use-after-scope mode llvm-svn: 169201
* [asan] EXPECT_EQ => ASSERT_EQ around pthread_create/pthread_join callsKostya Serebryany2012-12-031-2/+2
| | | | llvm-svn: 169121
* [asan] in asan tests, check all return values of ↵Kostya Serebryany2012-12-031-0/+4
| | | | | | pthread_create/pthread_join. Also add the ASAN_AVOID_EXPENSIVE_TESTS macro to guard the test that creates too many threads llvm-svn: 169118
* [asan] make asan_test.cc more gcc-friendlyKostya Serebryany2012-11-301-1/+1
| | | | llvm-svn: 168992
* [asan] simplify break_optimization in tests (Jakub Jelinek)Kostya Serebryany2012-11-301-2/+4
| | | | llvm-svn: 168990
* [asan/tsan] do not use __WORDSIZE macro, as it is glibc-private thing. ↵Kostya Serebryany2012-11-211-4/+2
| | | | | | Instead, define our own SANITIZER_WORDSIZE llvm-svn: 168424
* [ASan] Fix strchr/index tests for users who have 'char* strchr(char*,int)' ↵Alexey Samsonov2012-10-171-0/+2
| | | | | | instead of 'char* strchr(const char*, int)' llvm-svn: 166101
* [ASan] don't use attribute no_address_safety_analysis if it's unknown to ↵Alexey Samsonov2012-10-171-0/+7
| | | | | | compiler llvm-svn: 166099
* [ASan] Fix unit test headers. Add an option to change substitute ↵Alexey Samsonov2012-09-281-1/+7
| | | | | | asan_test_config.h file llvm-svn: 164821
* Whitespace/lintAlexey Samsonov2012-08-301-1/+1
| | | | llvm-svn: 162909
* [ASan/tests] Make 'noinline' and a bunch of other stuff portableTimur Iskhodzhanov2012-03-231-1/+27
| | | | llvm-svn: 153333
* AddressSanitizer run-time library. Not yet integrated with the compiler-rt ↵Kostya Serebryany2011-11-301-0/+30
build system, but can be built using the old makefile. See details in README.txt llvm-svn: 145463
OpenPOWER on IntegriCloud