summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/asan/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* [ASan] cmake unit tests: explicitly add necessary linker flags when linking ↵Alexey Samsonov2012-06-291-2/+6
| | | | | | unit tests with asan runtime llvm-svn: 159420
* [ASan] cmake-based unit tests: merge instrumented and non-instrumented files ↵Alexey Samsonov2012-06-291-34/+30
| | | | | | into one test binary llvm-svn: 159419
* [ASan] fix the build - erase second main as we link all test sources togetherAlexey Samsonov2012-06-281-6/+0
| | | | llvm-svn: 159348
* [ASan] silence various warnings in cmake build of asan unit testsAlexey Samsonov2012-06-282-4/+11
| | | | llvm-svn: 159347
* [ASan] cmake support for running asan unit tests on MacAlexey Samsonov2012-06-282-12/+59
| | | | llvm-svn: 159345
* [ASan] update cmake rules so that ASan unit tests can include googletest ↵Alexey Samsonov2012-06-281-1/+8
| | | | | | (and, hence, llvm) headers when they are built by fresh Clang llvm-svn: 159343
* Add support for building the ASan instrumentation unit tests with theChandler Carruth2012-06-271-18/+31
| | | | | | | | | | | | | | just-built Clang binary, and linking them against the just-built ASan runtime. This is *very* brittle. I expect it will require tweaking, and I've pro-actively disabled it on non-Unix builds and on cross-builds. It is also currently missing dependency edges on GoogleTest header files and a few other corner cases, but those can be fixed. This is the major milestone of a mini-bootstrap-like build of the unittest. llvm-svn: 159255
* [asan] update the cmake file for asanKostya Serebryany2012-06-251-1/+0
| | | | llvm-svn: 159143
* [asan] move tests from asan_interface_test.cc to asan_noinst_test.cc. Now ↵Kostya Serebryany2012-06-252-379/+360
| | | | | | all these tests do not require instrumentation and work directly with asan rt llvm-svn: 159135
* Cleanup the handling of CFLAGS even more in the cmake build for ASan.Chandler Carruth2012-06-251-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | Add the initial support for building ASan tests. The first change here is to try to get the CFLAGS to more closely match those used by the old Makefile. There are probably still goofs here, ASan folks, your review would be appreciated. The second big change is to add support for building both instrumentation based an non-instrumentation based unittests for ASan. They are built a bit differently from how the old makefiles managed things. Specifically, there are two binaries, one for the non-instrumented case, and one for the instrumented case. Also, the instrumented unit tests rely on the host compiler supporting AddressSanitizer's intrumentation pass. This is kind-of gross, but I don't know of a better way yet. I've mailed llvmdev to discuss this issue. One big caveat is that the detection logic currently doesn't work. I've commented it out temporarily as I'd like to get feedback from the ASan developers, etc. llvm-svn: 159134
* Small lint fix.Alexander Potapenko2012-06-211-1/+1
| | | | llvm-svn: 158922
* Add a test for issue 81 -- ↵Alexander Potapenko2012-06-213-3/+15
| | | | | | AddressSanitizerMac.DISABLED_CFAllocatorDefaultDoubleFree_ChildPhread llvm-svn: 158921
* Enable AddressSanitizerMac.CFAllocatorDefaultDoubleFree and ↵Alexander Potapenko2012-06-211-4/+4
| | | | | | AddressSanitizerMac.CFAllocatorMallocDoubleFree, which now work fine. llvm-svn: 158886
* Actually intercept free() to ensure that the deallocations caused by other ↵Alexander Potapenko2012-06-201-1/+1
| | | | | | | | | functions directly calling it are routed to our allocator. For the allocations that do not belong to any malloc zone check whether they're padded with a pointer to ASan's CFAllocator. If so, free the original (unpadded) pointer. This should fix AddressSanitizerMac.NSURLDeallocation and issue 70. llvm-svn: 158863
* Add a test for NSURL deallocation (issue 70)Alexander Potapenko2012-06-203-0/+18
| | | | llvm-svn: 158843
* [ASan] add interceptor for strncatAlexey Samsonov2012-06-081-0/+53
| | | | llvm-svn: 158198
* [ASan] fix GetFreeBytesTest interface test on 32-bit Linux - delete some ↵Alexey Samsonov2012-06-061-6/+0
| | | | | | assumptions about the behavior of allocator in test code llvm-svn: 158047
* Remove file-type tags for .cc files in ASan run-time libraryAlexey Samsonov2012-06-046-6/+6
| | | | llvm-svn: 157927
* [asan] more renamingKostya Serebryany2012-05-311-10/+10
| | | | llvm-svn: 157747
* [asan] more renamingKostya Serebryany2012-05-311-7/+7
| | | | llvm-svn: 157746
* [asan] fix one test on 32-bit Mac 10.7; enable another test on MacKostya Serebryany2012-05-222-5/+3
| | | | llvm-svn: 157237
* [asan] fix asan issue #66 (correctly report type of the bug)Kostya Serebryany2012-04-231-2/+2
| | | | llvm-svn: 155344
* [asan] test for issue #66Kostya Serebryany2012-04-191-0/+10
| | | | llvm-svn: 155127
* Change the way ASan interacts with custom signal handlers.Alexander Potapenko2012-04-101-42/+0
| | | | | | | | From now on we allow the clients to override signal handlers set by ASan, but print a warning in such a case. Remove the tests for signal() and sigaction(), because they made little sense even without this change. llvm-svn: 154390
* Use 'typename' instead of 'class' in template<> definitions supporting POD typesTimur Iskhodzhanov2012-04-091-6/+6
| | | | llvm-svn: 154314
* Make sure NSObjects are allocated in a way that is visible to ASan.Alexander Potapenko2012-03-303-0/+23
| | | | llvm-svn: 153762
* [ASan] interceptors for atoi/atol/atollAlexey Samsonov2012-03-291-2/+46
| | | | llvm-svn: 153637
* [asan] fix lintKostya Serebryany2012-03-281-2/+2
| | | | llvm-svn: 153601
* [asan] add racy double-free testKostya Serebryany2012-03-281-0/+32
| | | | llvm-svn: 153586
* [ASan] add interceptor for strtolAlexey Samsonov2012-03-261-16/+31
| | | | llvm-svn: 153444
* [ASan] add interceptor for strtollAlexey Samsonov2012-03-241-0/+40
| | | | llvm-svn: 153376
* [ASan/tests] Make 'noinline' and a bunch of other stuff portableTimur Iskhodzhanov2012-03-232-52/+60
| | | | llvm-svn: 153333
* [ASan] replace '#if ... or ...' with '#if ... || ...'Timur Iskhodzhanov2012-03-231-2/+2
| | | | llvm-svn: 153332
* [asan] extend the test for long double bugKostya Serebryany2012-03-211-0/+2
| | | | llvm-svn: 153190
* [asan] disable GetOwnershipStressTest on non-linuxKostya Serebryany2012-03-161-0/+3
| | | | llvm-svn: 152953
* [asan] use O(log(N)) algorithm instead of O(N) in __asan_get_ownershipKostya Serebryany2012-03-101-8/+19
| | | | llvm-svn: 152467
* [asan] add a (disabled) stress test for __asan_get_ownershipKostya Serebryany2012-03-091-0/+12
| | | | llvm-svn: 152362
* [asan] Add a negative test for memcpy of long double.Evgeniy Stepanov2012-03-021-0/+8
| | | | llvm-svn: 151888
* Introduce __asan_set_error_report_callback() to allow the client program ↵Alexander Potapenko2012-02-271-0/+18
| | | | | | | | post-process the error reports. If the callback is set, Report() and Printf() print the reports into a buffer (together with stderr), which is then passed to the client. llvm-svn: 151528
* Replace some #ifdef(s) with plain if(s).Evgeniy Stepanov2012-02-271-10/+4
| | | | llvm-svn: 151526
* AddressSanitizer: fix lintAlexey Samsonov2012-02-171-2/+2
| | | | llvm-svn: 150802
* [asan] Allocator tweaks for low memory systems.Evgeniy Stepanov2012-02-162-0/+14
| | | | llvm-svn: 150689
* [asan] implement __asan_set_death_callbackKostya Serebryany2012-02-131-0/+10
| | | | llvm-svn: 150414
* [asan] Add a missing return.Evgeniy Stepanov2012-02-131-0/+1
| | | | | | | It is technically reachable on Android, where pthread_exit is not marked noreturn. llvm-svn: 150381
* AddressSanitizer: move output tests to a separate directoryAlexey Samsonov2012-02-1333-525/+0
| | | | llvm-svn: 150367
* AddressSanitizer: Use FileCheck instead of grep for pure C output testsAlexey Samsonov2012-02-132-4/+22
| | | | llvm-svn: 150366
* [asan] unpoison the stack before every noreturn call. Fixes asan issue 37. ↵Kostya Serebryany2012-02-082-0/+34
| | | | | | rt part llvm-svn: 150101
* [asan] better warning messages for double-free bugs (provide ↵Kostya Serebryany2012-02-081-1/+5
| | | | | | allocation/deallocation stack traces) llvm-svn: 150027
* [asan] make sure the AsanThread object is destroyed if pthread_exit is calledKostya Serebryany2012-02-071-0/+12
| | | | llvm-svn: 149940
* Disables testing memcpy() on Mac OS 10.7,Alexander Potapenko2012-02-011-0/+6
| | | | | | | where memcpy() in fact aliases memmove() and thus calling it with overlapping parameters is not an error. llvm-svn: 149491
OpenPOWER on IntegriCloud