summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* [asan] drop the extension from asan tests (as the extension may be different)Kostya Serebryany2012-12-051-2/+2
| | | | llvm-svn: 169392
* 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-034-44/+53
| | | | | | 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-303-2/+9
| | | | llvm-svn: 168992
* [asan] simplify break_optimization in tests (Jakub Jelinek)Kostya Serebryany2012-11-303-24/+5
| | | | llvm-svn: 168990
* [asan] disable BuiltinLongJmpTest on AndroidKostya Serebryany2012-11-291-0/+2
| | | | llvm-svn: 168872
* [asan] enable BuiltinLongJmpTestKostya Serebryany2012-11-291-3/+2
| | | | llvm-svn: 168863
* [asan] add DISABLED_BuiltinLongJmpTestKostya Serebryany2012-11-281-0/+21
| | | | llvm-svn: 168793
* [asan] fix Android build by not calling GetPageSizeCached in a test (no need ↵Kostya Serebryany2012-11-261-4/+3
| | | | | | for the page size anyway) llvm-svn: 168585
* [asan/tsan] get rid of kPageSize completely in favor of GetPageSizeCached(). ↵Kostya Serebryany2012-11-241-3/+4
| | | | | | This makes the code friendly to more platforms llvm-svn: 168537
* [asan/tsan] do not use __WORDSIZE macro, as it is glibc-private thing. ↵Kostya Serebryany2012-11-213-16/+15
| | | | | | Instead, define our own SANITIZER_WORDSIZE llvm-svn: 168424
* Update compiler-rt tests to match flag renaming/deprecation in Clang.Richard Smith2012-11-061-1/+1
| | | | llvm-svn: 167434
* [ASan] don't run hacky test for __asan_get_free_bytes() on 32-bitsAlexey Samsonov2012-10-261-15/+18
| | | | llvm-svn: 166771
* [ASan] add comment to blacklist file to test behavior introduced in r166283Alexey Samsonov2012-10-191-0/+1
| | | | llvm-svn: 166284
* [ASan] instrumented asan unit tests should depend on blacklist fileAlexey Samsonov2012-10-191-2/+4
| | | | llvm-svn: 166282
* [ASan] unit tests: Move main() to a separate file. Fix lintAlexey Samsonov2012-10-174-10/+22
| | | | llvm-svn: 166104
* [ASan] Fix strchr/index tests for users who have 'char* strchr(char*,int)' ↵Alexey Samsonov2012-10-172-2/+27
| | | | | | 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-172-1/+8
| | | | | | compiler llvm-svn: 166099
* [asan] fix gcc warnings while building asan-rtKostya Serebryany2012-10-171-4/+6
| | | | llvm-svn: 166093
* [asan] fix more tests Kostya Serebryany2012-10-151-9/+9
| | | | llvm-svn: 165934
* [ASan] Change __asan_set_on_error_callback to weak overridable ↵Alexey Samsonov2012-10-021-6/+0
| | | | | | __asan_on_error, so that ASan would call the latter even if it finds the error early (i.e. during module initialization) llvm-svn: 165008
* [ASan] Fix unit test headers. Add an option to change substitute ↵Alexey Samsonov2012-09-285-7/+13
| | | | | | asan_test_config.h file llvm-svn: 164821
* [ASan] cleanup: fix headers and lint warningsAlexey Samsonov2012-09-192-5/+4
| | | | llvm-svn: 164205
* Intercept signal() and sigaction() within the dynamic runtime on Mac.Alexander Potapenko2012-09-181-1/+35
| | | | | | Add a test that ensures that ASan does not allow to override the signal handlers. llvm-svn: 164118
* Remove some debugging code.Evgeniy Stepanov2012-09-141-5/+0
| | | | llvm-svn: 163881
* Give more accurate malloc statistics to malloc_zone_statistics().Alexander Potapenko2012-09-121-0/+14
| | | | | | Fix a warning in macros instantiation. llvm-svn: 163716
* [ASan] fix compiler warnings for unit test on AndroidAlexey Samsonov2012-09-122-13/+17
| | | | llvm-svn: 163704
* [Sanitizer] first effort to start building ASan runtime with -Werror in ↵Alexey Samsonov2012-09-122-3/+5
| | | | | | CMake build llvm-svn: 163686
* CMake build rules for ASan Android runtime and tests.Evgeniy Stepanov2012-09-111-8/+47
| | | | llvm-svn: 163613
* [asan] Use __ANDROID__ guard in asan_test.Evgeniy Stepanov2012-09-061-1/+1
| | | | llvm-svn: 163313
* [ASan] hoist more compile flags to SANITIZER_COMMON_CFLAGS var and add the ↵Alexey Samsonov2012-09-051-0/+5
| | | | | | rest of flags/defs from old Makefile to CMake llvm-svn: 163204
* [ASan] Add CMake support for building ASan benchmarksAlexey Samsonov2012-09-051-6/+13
| | | | llvm-svn: 163201
* Whitespace/lintAlexey Samsonov2012-08-301-1/+1
| | | | llvm-svn: 162909
* Relocate the external headers provided by ASan and the common sanitizerChandler Carruth2012-08-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | library. These headers are intended to be available to user code when built with AddressSanitizer (or one of the other sanitizer's in the future) to interface with the runtime library. As such, they form stable external C interfaces, and the headers shouldn't be located within the implementation. I've pulled them out into what seem like fairly obvious locations and names, but I'm wide open to further bikeshedding of these names and locations. I've updated the code and the build system to cope with the new locations, both CMake and Makefile. Please let me know if this breaks anyone's build. The eventual goal is to install these headers along side the Clang builtin headers when we build the ASan runtime and install it. My current thinking is to locate them at: <prefix>/lib/clang/X.Y/include/sanitizer/common_interface_defs.h <prefix>/lib/clang/X.Y/include/sanitizer/asan_interface.h <prefix>/lib/clang/X.Y/include/sanitizer/... But maybe others have different suggestions? Fixing the style of the #include between these headers at least unblocks experimentation with installing them as they now should work when installed in these locations. llvm-svn: 162822
* Some flag cleanup for the sanitizer runtimes.Chandler Carruth2012-08-291-1/+1
| | | | | | | | | | | | This hoists most of the CFLAGS into a common variable. It also adds detection for -Wno-c99-extensions and uses it to silence a pile of warnings. Finally, it switches to the proper flag -rdynamic. With this, the cmake build is warning free on my bootstrap Linux build. llvm-svn: 162809
* [ASan] CMake build: share more compile flags between instrumented and ↵Alexey Samsonov2012-08-281-6/+7
| | | | | | non-instrumented tests llvm-svn: 162750
* [asan] some renaming before we move StackTrace into sanitizer_commonKostya Serebryany2012-08-281-13/+13
| | | | llvm-svn: 162747
* [asan] improve SetErrorReportCallbackTest to actually catch missing ↵Kostya Serebryany2012-08-281-1/+6
| | | | | | functionality in __asan_set_error_report_callback llvm-svn: 162745
* [asan] better diagnostics for mmap failureKostya Serebryany2012-08-141-1/+1
| | | | llvm-svn: 161874
* [ASan] Add __asan_set_on_error_callback() interface function that allows ↵Alexey Samsonov2012-08-131-0/+6
| | | | | | user to set a callback to be called right when ASan detects an error llvm-svn: 161754
* [ASan] CMake support for building ASan runtime as a universal binary on MacAlexey Samsonov2012-08-101-6/+7
| | | | llvm-svn: 161665
* [ASan] Add support for running unit tests by lit (as a part of 'make ↵Alexey Samsonov2012-08-071-3/+3
| | | | | | check-asan' command) llvm-svn: 161406
* Make strcat() and strncat() more standard-compliant (check for invalid ↵Alexander Potapenko2012-08-021-6/+7
| | | | | | | | parameters even if zero bytes is copied, more accurate overlap check) Fix the tests that were relying on the incorrect behavior. llvm-svn: 161167
* cmake for compiler-rt: add a function to set output dirs for compiler ↵Alexey Samsonov2012-07-251-1/+1
| | | | | | runtimes equal to directory used by Clang driver. Use it for ASan runtime. Also, make sure that ASan unit tests depend on the ASan runtime. llvm-svn: 160721
* [asan] don't return from a never-return function. fix a test that had a ↵Kostya Serebryany2012-07-251-10/+2
| | | | | | chain of bugs instead of just one llvm-svn: 160719
* [ASan] Support for cmake build of ASan unittests in 32-bit LLVM build. ↵Alexey Samsonov2012-07-243-49/+50
| | | | | | Currently, to run ASan unit tests both for 32- and 64 bits one has to maintain two distinct LLVM builds. In a bright future, we'd like to use a single build for this llvm-svn: 160666
* Intercept CFAllocator for each thread in the program.Alexander Potapenko2012-07-232-1/+33
| | | | | | | Test that child threads use the ASan allocator, that allocated memory can be passed to another thread and deallocated on it. This should fix http://code.google.com/p/address-sanitizer/issues/detail?id=81 llvm-svn: 160630
* [ASan] minor fixes to silence cmake build warningsAlexey Samsonov2012-07-232-13/+10
| | | | llvm-svn: 160624
* For wild addresses in the shadow or shadow gap areas print an error message ↵Alexander Potapenko2012-07-231-1/+14
| | | | | | | | instead of crashing on a check. Add AddressSanitizer.MemsetWildAddressTest that makes sure a proper error message is printed. llvm-svn: 160620
OpenPOWER on IntegriCloud