summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2016-02-19[sancov] requiring dynamic asan.Mike Aizatsky
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@261362 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-19minor test runline cleanupXinliang David Li
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@261361 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-19[sancov] using static asanMike Aizatsky
We are not able to recover coverage points from dynamically linked binaries at this point without symbols in @plt tables. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@261352 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-19[PGO] Enable profile-rt testing on all supported targetsXinliang David Li
Differential Revision: http://reviews.llvm.org/D17361 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@261344 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-19[Windows] Simplify more tests now that Clang supports EHReid Kleckner
Remove TestCases/Windows/throw_catch.cc, since it is redundant with the portable test TestCases/throw_catch.cc. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@261342 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-19[Windows] Add 10s timeout to some WaitForSingleObject callsReid Kleckner
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. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@261338 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-18Un-XFAIL the last C++ EH test, it was fixed by r261258Reid Kleckner
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@261263 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-18Add test coverage for default linkerXinliang David Li
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@261261 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-18Clang on Windows supports exceptions, un XFAIL the passing testsReid Kleckner
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@261236 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-17[sanitizer-coverage] implement -fsanitize-coverage=trace-pc. This is similar ↵Kostya Serebryany
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 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@261159 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-17PR26606: Make abort_on_error.cc test more portable.Alexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@261157 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-17Fix PR26608: Make sanitizer_common tests more portable.Alexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@261150 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-17[TSan] PR26609: Fix two test cases.Alexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@261148 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-17[tests] Slightly improve a fix in r260669.Alexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@261142 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-17[CMake] Push the dependency on AddLLVM into the test and unites layersChris Bieneman
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. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@261105 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-15[compiler-rt] Fix test failures when switching default C++ libraryJonas Hahnfeld
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 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260883 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-12[LSan] Print more helpful error message if LSan crashes during leak detection.Alexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260717 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-12Re-commit r260230 with a fix for clang-cmake-aarch64-42vma.Daniel Sanders
There is now a default name_suffix ('default') which should appease the buildbot and reveal why this builder lacks a suffix. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260679 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-12Revert r260669 while the clang-cmake-aarch64-42vma failures is investigated.Daniel Sanders
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. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260672 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-12[msan+tsan] Bring back the tests that disappeared after r260230 and r259512.Daniel Sanders
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. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260669 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-12[sancov] improved object files handling.Mike Aizatsky
Updating sancov invocation on html_cov_dump. sancov change: http://reviews.llvm.org/D17169 Differential Revision: http://reviews.llvm.org/D17171 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260629 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-11[LSan] Test case fix: mode debug output, synchronization instead of sleep().Alexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260564 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-11[ASan] Disable test that uses profile runtime on Windows.Alexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260561 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-11[LSan] Fix a crash when LSan hits a guard page while scanning thread stack ↵Alexey Samsonov
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 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260554 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-11[Windows] Fill in read/write information in SignalContextReid Kleckner
Implements https://github.com/google/sanitizers/issues/653 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260539 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-11Un-XFAIL a passing test on WindowsReid Kleckner
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260481 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-11Move mmap_limit_mp test to PosixReid Kleckner
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. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260480 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-11[asan] Dump adb output on failure.Evgeniy Stepanov
This is an asan/android test harness change aiming to catch "adb pull" failures on the buildbot. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260473 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-10Rollback 260394 -- 32bit test needs more config supportXinliang David Li
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260402 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-10Add tests for -m32Xinliang David Li
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260394 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-09[asan] update the scariness score: tweak a few weights and add testsKostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260327 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-09[lsan] Run the tests for each supported arch and suffix each one to ↵Daniel Sanders
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 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260232 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-09[dfsan] Run the tests for each supported arch and suffix each one to ↵Daniel Sanders
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 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260231 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-09[msan] Run the tests for each supported arch and suffix each one to ↵Daniel Sanders
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 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260230 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-09[sanitizer_common] Correct the nits that should have been committed as part ↵Daniel Sanders
of r260227. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260229 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-09[sanitizer_common] Add suffix to lit testsuite name to distinguish subtargets.Daniel Sanders
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 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260227 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-08[asan] Implement SEGV read vs write detection for ARM and AArch64.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260163 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-08[PGO] Simpflify test and increase coverageXinliang David Li
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260142 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-08[asan] re-commit r259961, this time making the test Linux-OnlyKostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260128 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-08[asan] XFAIL local_alias.cc testcase on android in order to fix ↵Maxim Ostapenko
sanitizer-x86_64-linux buildbot. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260090 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-08[asan] XFAIL local alias related tests on Mips due to ↵Maxim Ostapenko
https://llvm.org/bugs/show_bug.cgi?id=26525. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260079 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-08[asan] Introduce new approach for ODR violation detection based on odr ↵Maxim Ostapenko
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 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260076 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-07Revert r259961, r259978, r259981.Nico Weber
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' git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260059 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-07Test update : tighten up checksXinliang David Li
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260052 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-07Revert 260050 -- new test case should not be includedXinliang David Li
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260051 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-07Test update : tighten up checksXinliang David Li
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260050 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-07Add coverage tests (defaulted constructors/destructor)Xinliang David Li
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260041 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-06[asan] trying to fix the non-x86 botsKostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@259981 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-06[asan] properly report an un-aligned global variable instead of just crashingKostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@259979 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-06[asan] disabled one subtest in scariness_score_test.cc that may fail when ↵Kostya Serebryany
running under GNU make. Add more subtests git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@259978 91177308-0d34-0410-b5e6-96231b3b80d8