summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test
Commit message (Collapse)AuthorAgeFilesLines
...
* [sancov] requiring dynamic asan.Mike Aizatsky2016-02-191-1/+1
| | | | llvm-svn: 261362
* minor test runline cleanupXinliang David Li2016-02-192-2/+2
| | | | llvm-svn: 261361
* [sancov] using static asanMike Aizatsky2016-02-191-1/+1
| | | | | | | We are not able to recover coverage points from dynamically linked binaries at this point without symbols in @plt tables. llvm-svn: 261352
* [PGO] Enable profile-rt testing on all supported targetsXinliang David Li2016-02-193-8/+43
| | | | | | Differential Revision: http://reviews.llvm.org/D17361 llvm-svn: 261344
* [Windows] Simplify more tests now that Clang supports EHReid Kleckner2016-02-192-85/+2
| | | | | | | Remove TestCases/Windows/throw_catch.cc, since it is redundant with the portable test TestCases/throw_catch.cc. llvm-svn: 261342
* [Windows] Add 10s timeout to some WaitForSingleObject callsReid Kleckner2016-02-193-13/+10
| | | | | | | | | | | | | | I ran the test suite yesterday and when I came back this morning the queue_user_work_item.cc test was hung. This could be why the sanitizer-windows buildbot keeps randomly timing out. I updated all the usages of WaitForSingleObject involving threading events. I'm assuming the API can reliably wait for subprocesses, which is what the majority of call sites use it for. While I'm at it, we can simplify some EH tests now that clang can compile C++ EH. llvm-svn: 261338
* Un-XFAIL the last C++ EH test, it was fixed by r261258Reid Kleckner2016-02-181-3/+0
| | | | llvm-svn: 261263
* Add test coverage for default linkerXinliang David Li2016-02-181-4/+11
| | | | llvm-svn: 261261
* Clang on Windows supports exceptions, un XFAIL the passing testsReid Kleckner2016-02-183-9/+0
| | | | llvm-svn: 261236
* [sanitizer-coverage] implement -fsanitize-coverage=trace-pc. This is similar ↵Kostya Serebryany2016-02-171-0/+31
| | | | | | to trace-bb, but has a different API. We already use the equivalent flag in GCC for Linux kernel fuzzing. We may be able to use this flag with AFL too llvm-svn: 261159
* PR26606: Make abort_on_error.cc test more portable.Alexey Samsonov2016-02-172-2/+2
| | | | llvm-svn: 261157
* Fix PR26608: Make sanitizer_common tests more portable.Alexey Samsonov2016-02-173-5/+6
| | | | llvm-svn: 261150
* [TSan] PR26609: Fix two test cases.Alexey Samsonov2016-02-172-4/+4
| | | | llvm-svn: 261148
* [tests] Slightly improve a fix in r260669.Alexey Samsonov2016-02-172-2/+4
| | | | llvm-svn: 261142
* [CMake] Push the dependency on AddLLVM into the test and unites layersChris Bieneman2016-02-171-0/+3
| | | | | | Compiler-rt only relies on LLVM for lit support. Pushing this dependency down into the test and unitest layers will allow builtin libraries to be built without LLVM. llvm-svn: 261105
* [compiler-rt] Fix test failures when switching default C++ libraryJonas Hahnfeld2016-02-153-2/+3
| | | | | | | | | | 1. Add two explicit -stdlib=libstdc++ in conjunction with -static-libstdc++ 2. Pass -nostdinc++ when adding include paths for libc++ built for tsan. This prevents clang finding the headers twice which would confuse #include_next Differential Revision: http://reviews.llvm.org/D17189 llvm-svn: 260883
* [LSan] Print more helpful error message if LSan crashes during leak detection.Alexey Samsonov2016-02-121-3/+3
| | | | llvm-svn: 260717
* Re-commit r260230 with a fix for clang-cmake-aarch64-42vma.Daniel Sanders2016-02-123-3/+3
| | | | | | | There is now a default name_suffix ('default') which should appease the buildbot and reveal why this builder lacks a suffix. llvm-svn: 260679
* Revert r260669 while the clang-cmake-aarch64-42vma failures is investigated.Daniel Sanders2016-02-122-2/+2
| | | | | | | There's no obvious reason it should fail in this way but it's the only change on the blamelist. I suspect stale lit*.cfg's from previous builds. llvm-svn: 260672
* [msan+tsan] Bring back the tests that disappeared after r260230 and r259512.Daniel Sanders2016-02-122-2/+2
| | | | | | | | | | The lit test-suite containing the unit tests needs to be explicitly specified as an argument to lit.py since it is no longer discovered when the other tests are run (because they are one directory deeper). dfsan, lsan, and sanitizer_common don't show the same problem. llvm-svn: 260669
* [sancov] improved object files handling.Mike Aizatsky2016-02-121-1/+1
| | | | | | | | | | Updating sancov invocation on html_cov_dump. sancov change: http://reviews.llvm.org/D17169 Differential Revision: http://reviews.llvm.org/D17171 llvm-svn: 260629
* [LSan] Test case fix: mode debug output, synchronization instead of sleep().Alexey Samsonov2016-02-111-2/+11
| | | | llvm-svn: 260564
* [ASan] Disable test that uses profile runtime on Windows.Alexey Samsonov2016-02-111-0/+2
| | | | llvm-svn: 260561
* [LSan] Fix a crash when LSan hits a guard page while scanning thread stack ↵Alexey Samsonov2016-02-111-0/+60
| | | | | | | | | | | | | | | | | | | | | | | | for pointers. Summary: In some cases stack pointer register (SP) doesn't point into the thread stack: e.g. if one is using swapcontext(). In this case LSan conservatively tries to scan the whole thread stack for pointers. However, thread stack (at least in glibc implementation) may also include guard pages, causing LSan to crash when it's reading from them. One of the solutions is to use a pthread_attr_getguardsize() to adjust the calculated stack boundaries. However, here we're just using IsAccessibleMemoryRange to skip guard pages and make the code (slightly) less platform-specific. Reviewers: kcc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D17116 llvm-svn: 260554
* [Windows] Fill in read/write information in SignalContextReid Kleckner2016-02-112-1/+32
| | | | | | Implements https://github.com/google/sanitizers/issues/653 llvm-svn: 260539
* Un-XFAIL a passing test on WindowsReid Kleckner2016-02-111-1/+1
| | | | llvm-svn: 260481
* Move mmap_limit_mp test to PosixReid Kleckner2016-02-111-0/+0
| | | | | | | | | This test isn't posix specific, but it doesn't pass on Windows and is XFAILed. I suspect that this test, which is expected to fail, is causing the hangs I'm seeing on our WinASan builder. Moving it to Posix seems to be the cleanest way to avoid running it on Windows. llvm-svn: 260480
* [asan] Dump adb output on failure.Evgeniy Stepanov2016-02-111-2/+12
| | | | | | | This is an asan/android test harness change aiming to catch "adb pull" failures on the buildbot. llvm-svn: 260473
* Rollback 260394 -- 32bit test needs more config supportXinliang David Li2016-02-104-31/+1
| | | | llvm-svn: 260402
* Add tests for -m32Xinliang David Li2016-02-104-1/+31
| | | | llvm-svn: 260394
* [asan] update the scariness score: tweak a few weights and add testsKostya Serebryany2016-02-091-4/+18
| | | | llvm-svn: 260327
* [lsan] Run the tests for each supported arch and suffix each one to ↵Daniel Sanders2016-02-093-11/+43
| | | | | | | | | | | | | | | | | | | | | | | distinguish them. Summary: Previously, the tests only ran for the 64-bit equivalent of the default target (see -m64). Given the supported architecture list only contains 64-bit targets, this happens to work out the same as the supported targets in most cases but may matter for X86_64/X86_64h on Darwin. For other targets, the practical effect is that the test names contain the architecture. This resolves some confusion when lsan tests fail since their name no longer implies that they are trying to test the default target. Reviewers: samsonov Subscribers: tberghammer, danalbert, llvm-commits, srhines Differential Revision: http://reviews.llvm.org/D16859 llvm-svn: 260232
* [dfsan] Run the tests for each supported arch and suffix each one to ↵Daniel Sanders2016-02-093-6/+37
| | | | | | | | | | | | | | | | | | | | | | | distinguish them. Summary: Previously, the tests only ran for the 64-bit equivalent of the default target (see -m64). Given the supported architecture list only contains 64-bit targets, this happens to work out the same as the supported targets in most cases but may matter for X86_64/X86_64h on Darwin. For other targets, the practical effect is that the test names contain the architecture. This resolves some confusion when msan tests fail since their name no longer implies that they are trying to test the default target. Reviewers: samsonov Subscribers: tberghammer, danalbert, llvm-commits, srhines Differential Revision: http://reviews.llvm.org/D16856 llvm-svn: 260231
* [msan] Run the tests for each supported arch and suffix each one to ↵Daniel Sanders2016-02-093-10/+41
| | | | | | | | | | | | | | | | | | | | | | | distinguish them. Summary: Previously, the tests only ran for the 64-bit equivalent of the default target (see -m64). Given the supported architecture list only contains 64-bit targets, this happens to work out the same as the supported targets in most cases but may matter for X86_64/X86_64h on Darwin. For other targets, the practical effect is that the test names contain the architecture. This resolves some confusion when msan tests fail since their name no longer implies that they are trying to test the default target. Reviewers: samsonov Subscribers: tberghammer, danalbert, srhines, llvm-commits Differential Revision: http://reviews.llvm.org/D16855 llvm-svn: 260230
* [sanitizer_common] Correct the nits that should have been committed as part ↵Daniel Sanders2016-02-093-3/+2
| | | | | | of r260227. llvm-svn: 260229
* [sanitizer_common] Add suffix to lit testsuite name to distinguish subtargets.Daniel Sanders2016-02-093-1/+3
| | | | | | | | | | | | | | | | | | Summary: This fixes duplicate test names in the test results, so: PASS: SanitizerCommon-asan :: fopen_nullptr.c (304 of 431) PASS: SanitizerCommon-asan :: fopen_nullptr.c (305 of 431) is now: PASS: SanitizerCommon-asan-i386-Linux :: fopen_nullptr.c (282 of 431) PASS: SanitizerCommon-asan-x86_64-Linux :: fopen_nullptr.c (316 of 431) Reviewers: samsonov Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D16850 llvm-svn: 260227
* [asan] Implement SEGV read vs write detection for ARM and AArch64.Evgeniy Stepanov2016-02-081-4/+12
| | | | llvm-svn: 260163
* [PGO] Simpflify test and increase coverageXinliang David Li2016-02-082-19/+20
| | | | llvm-svn: 260142
* [asan] re-commit r259961, this time making the test Linux-OnlyKostya Serebryany2016-02-081-0/+178
| | | | llvm-svn: 260128
* [asan] XFAIL local_alias.cc testcase on android in order to fix ↵Maxim Ostapenko2016-02-081-0/+2
| | | | | | sanitizer-x86_64-linux buildbot. llvm-svn: 260090
* [asan] XFAIL local alias related tests on Mips due to ↵Maxim Ostapenko2016-02-082-0/+3
| | | | | | https://llvm.org/bugs/show_bug.cgi?id=26525. llvm-svn: 260079
* [asan] Introduce new approach for ODR violation detection based on odr ↵Maxim Ostapenko2016-02-082-0/+43
| | | | | | | | | | | | | | indicator symbols. This is a compiler-rt part of this http://reviews.llvm.org/D15642 patch. Here, we add a new approach for ODR violation detection. Instead of using __asan_region_is_poisoned(g->beg, g->size_with_redzone) on global address (that would return false now due to using private alias), we can use new globally visible indicator symbol to perform the check. Differential Revision: http://reviews.llvm.org/D15644 llvm-svn: 260076
* Revert r259961, r259978, r259981.Nico Weber2016-02-071-178/+0
| | | | | | | | | | | | The "sanitizer-windows" buildbot has been failing for two days because of this: FAILED: cl.exe asan_report.cc asan_scariness_score.h(60) : error C2536: '__asan::ScarinessScore::__asan::ScarinessScore::descr' : cannot specify explicit initializer for arrays asan_scariness_score.h(60) : see declaration of '__asan::ScarinessScore::descr' llvm-svn: 260059
* Test update : tighten up checksXinliang David Li2016-02-072-6/+4
| | | | llvm-svn: 260052
* Revert 260050 -- new test case should not be includedXinliang David Li2016-02-073-46/+6
| | | | llvm-svn: 260051
* Test update : tighten up checksXinliang David Li2016-02-073-6/+46
| | | | llvm-svn: 260050
* Add coverage tests (defaulted constructors/destructor)Xinliang David Li2016-02-072-0/+59
| | | | llvm-svn: 260041
* [asan] trying to fix the non-x86 botsKostya Serebryany2016-02-061-0/+2
| | | | llvm-svn: 259981
* [asan] properly report an un-aligned global variable instead of just crashingKostya Serebryany2016-02-061-0/+25
| | | | llvm-svn: 259979
* [asan] disabled one subtest in scariness_score_test.cc that may fail when ↵Kostya Serebryany2016-02-061-1/+9
| | | | | | running under GNU make. Add more subtests llvm-svn: 259978
OpenPOWER on IntegriCloud