summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/msan/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Make cmake link flag naming consistentFrancis Ricci2017-01-101-3/+3
| | | | | | | | | | | | | | | | | | | Summary: The build system was inconsistent in its naming conventions for link flags. This patch changes all uses of LINKFLAGS to LINK_FLAGS, for consistency with cmake's LINK_FLAGS property. This patch should make it easier to search the source code for uses of link flags, as well as providing the benefit of improved style and consistency. Reviewers: compnerd, beanz Subscribers: kubabrecka, llvm-commits, mgorny Differential Revision: https://reviews.llvm.org/D28506 llvm-svn: 291539
* [msan] Disable prlimit test on glibc < 2.13.Evgeniy Stepanov2016-08-201-0/+8
| | | | llvm-svn: 279352
* __builtin_ia32_storeups is no more. Replace it with xmmintrin.h intrinsic.Benjamin Kramer2016-05-311-1/+1
| | | | llvm-svn: 271257
* [MSan] Add a test for vararg with lots of non-vararg arguments.Marcin Koscielnicki2016-05-091-0/+14
| | | | | | | | | This is a testcase for http://llvm.org/PR27646, hitting the bug on x86_64, aarch64, mips. Differential Revision: http://reviews.llvm.org/D19944 llvm-svn: 268981
* [msan] Tests for vector compare intrinsics.Evgeniy Stepanov2016-04-291-1/+42
| | | | llvm-svn: 267967
* [msan] Implement GetPageSize in the test.Evgeniy Stepanov2016-04-201-8/+4
| | | | | | | | | Instead of calling a sanitizer_common function, implement GetPageSize in the test directly. MSan runtime does not export __sanitizer::* symbols, and the current code breaks when the test and the runtime library are in the separate link units (ex. when the test is built as a shared library). llvm-svn: 266910
* [msan] Don't hardcode 4kiB page size in msan_test.cc.Marcin Koscielnicki2016-04-181-8/+17
| | | | | | | | | | | | This breaks the valloc test on PowerPC, which has 64kiB pages. Since getting page size portably is nontrivial, and there's already a function for that in __sanitizer, just use it. Unfortunately, sanitizer_common.h conflicts with the interface headers inclucded by msan_test.cc (and a few of its own macros), so we have to declare it manually. Differential Revision: http://reviews.llvm.org/D19227 llvm-svn: 266688
* [MSan] [PowerPC] Add loadable library name for testing.Marcin Koscielnicki2016-04-181-0/+4
| | | | | | Differential Revision: http://reviews.llvm.org/D19217 llvm-svn: 266646
* [Compiler-rt][MSan]Fix shmat testcase: Pass SHMLBA-alligned address to shmatMohit K. Bhakkad2016-02-251-7/+11
| | | | | | | | | | Reviewers: samsonov Subscribers: jaydeep, sagar, llvm-commits Differential Revision: http://reviews.llvm.org/D17262 llvm-svn: 261837
* [msan] Extend prlimit test.Evgeniy Stepanov2016-02-171-2/+11
| | | | llvm-svn: 261049
* [msan] Intercept prlimit.Evgeniy Stepanov2016-02-171-0/+7
| | | | llvm-svn: 261048
* [Compiler-rt][MSan][MIPS] Resolve gethostbyname_r_erange for MIPSMohit K. Bhakkad2016-02-161-2/+2
| | | | | | | | | | Reviewers: eugenis, kcc, samsonov Subscribers: jaydeep, sagar, llvm-commits Differential Revision: http://reviews.llvm.org/D17135 llvm-svn: 260946
* Fix MemorySanitizer.ptrtoint test on big-endian targets.Evgeniy Stepanov2016-02-121-6/+12
| | | | llvm-svn: 260749
* Fix the cross compilation of unit tests. NFC (second attempt)Sumanth Gundapaneni2016-01-141-1/+1
| | | | | | | | | | | | | | | | With COMPILER_RT_INCLUDE_TESTS turned ON and in a cross compiling environment, the unit tests fail to link. This patch does the following changes >Rename COMPILER_RT_TEST_CFLAGS to COMPILER_RT_UNITTEST_CFLAGS to reflect the way it's used. >Add COMPILER_RT_TEST_COMPILER_CFLAGS to COMPILER_RT_UNITTEST_CFLAGS so that cross-compiler would be able to build/compile the unit tests >Add COMPILER_RT_UNITTEST_LINKFLAGS to COMPILER_RT_UNITTEST_CFLAGS so that cross-compiler would be able to link the unit tests (if needed) Differential Revision: http://reviews.llvm.org/D16165 llvm-svn: 257783
* Revert r257686 "With COMPILER_RT_INCLUDE_TESTS turned ON and in a cross ↵Hans Wennborg2016-01-131-1/+1
| | | | | | | | | | | | | | | compiling" This broke the build. For example, from http://lab.llvm.org:8011/builders/clang-cmake-aarch64-full/builds/1191/steps/cmake%20stage%201/logs/stdio: -- Compiler-RT supported architectures: aarch64 CMake Error at projects/compiler-rt/cmake/Modules/AddCompilerRT.cmake:170 (string): string sub-command REPLACE requires at least four arguments. Call Stack (most recent call first): projects/compiler-rt/lib/CMakeLists.txt:4 (include) llvm-svn: 257694
* With COMPILER_RT_INCLUDE_TESTS turned ON and in a cross compilingSumanth Gundapaneni2016-01-131-1/+1
| | | | | | | | | | | | | | | environment, the unit tests fail to link. This patch does the following changes >Rename COMPILER_RT_TEST_CFLAGS to COMPILER_RT_UNITTEST_CFLAGS to reflect the way it's used. >Add COMPILER_RT_TEST_COMPILER_CFLAGS to COMPILER_RT_UNITTEST_CFLAGS so that cross-compiler would be able to build/compile the unit tests >Add COMPILER_RT_UNITTEST_LINKFLAGS to COMPILER_RT_UNITTEST_CFLAGS so that cross-compiler would be able to link the unit tests (if needed) Differential Revision:http://reviews.llvm.org/D15082 llvm-svn: 257686
* [compiler-rt] [msan] Couple of fixes for msan with libc++Adhemerval Zanella2015-11-241-3/+13
| | | | | | | | | | | | This patch adds some fixes for MSAN with libc++ for aarch64: 1. Adds the libmsan_loadable name for aarch64. 2. Fixes some pthread_attr_setstacksize for aarch64, since glibc sets the mininum stack size to be higher than the x86_64 default (16KB vs 128KB). 3. Fixes a swprintf null char constant definition. llvm-svn: 254015
* [msan] Build unit test shared library code with -fPIC.Evgeniy Stepanov2015-10-211-5/+1
| | | | llvm-svn: 250957
* Fix msan tests build.Evgeniy Stepanov2015-10-081-2/+4
| | | | | | | | | | CMake build rules listed -I flags for two different libc++ header locations which broke when libc++ headers started using include_next. Also change -I to -isystem to avoid compiler warning about include_next. llvm-svn: 249759
* [compiler-rt] Add common interceptor for wcrtomb. Eric Fiselier2015-08-261-0/+10
| | | | | | | | | | | | Summary: Currently there is a libc++ test failing under MSAN because wcrtomb is not intercepted. This patch adds an interceptor for it. Reviewers: samsonov, eugenis Subscribers: tberghammer, danalbert, srhines, llvm-commits Differential Revision: http://reviews.llvm.org/D12311 llvm-svn: 245994
* [CMake] Don't build libc++ with MSan-with-calls instrumentation.Alexey Samsonov2015-07-311-13/+14
| | | | | | | Instead, refactor the build rules so that we build libc++ with MSan for each supported architecture. llvm-svn: 243785
* CMake: Stop using LLVM's custom parse_arguments. NFCFilipe Cabecinhas2015-06-191-1/+1
| | | | | | | | | | | | | | | | | | | | | Summary: Use CMake's cmake_parse_arguments() instead. It's called in a slightly different way, but supports all our use cases. It's in CMake 2.8.8, which is our minimum supported version. CMake 3.0 doc (roughly the same. No direct link to 2.8.8 doc): http://www.cmake.org/cmake/help/v3.0/module/CMakeParseArguments.html?highlight=cmake_parse_arguments Since I was already changing these calls, I changed ARCH and LIB into ARCHS and LIBS to make it more clear that they're lists of arguments. Reviewers: eugenis, samsonov, beanz Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D10529 llvm-svn: 240120
* [Sanitizer] Fix/suppress compiler warnings in unit tests.Alexey Samsonov2015-03-041-0/+1
| | | | llvm-svn: 231293
* [msan] Fix MsanTest to pass in track_origins=2 mode.Evgeniy Stepanov2015-02-261-22/+24
| | | | llvm-svn: 230639
* [MSan][MIPS] Fix for some failing tests on MIPS64Mohit K. Bhakkad2015-02-181-2/+7
| | | | | | | | | | | | | | Enabling internal ptrace for mips, which fixes some ptrace related tests. Along with this fixing some other failures. Reviewers: Reviewers: eugenis, kcc, samsonov Subscribers: dsanders, sagar, lldb-commits Differential Revision: http://reviews.llvm.org/D7332 llvm-svn: 229656
* [Msan] Fix the unit tests' PathToLoadable() to work on FreeBSDViktor Kutuzov2015-02-171-21/+35
| | | | | | Differential Revision: http://reviews.llvm.org/D7587 llvm-svn: 229491
* [msan] Fix UnalignedLoad/UnalignedStore tests.Evgeniy Stepanov2015-02-161-9/+8
| | | | | | | Add alignment attrubutes to ensure that the tests actually test unaligned access irrespective of the stack layout. llvm-svn: 229398
* [Msan] Improve the EXPECT_NOT_POISONED() macro to provide the original line ↵Viktor Kutuzov2015-02-161-3/+3
| | | | | | | | number Differential Revision: http://reviews.llvm.org/D7341 llvm-svn: 229389
* [Msan] Make unit tests that use mempcpy() passing on FreeBSDViktor Kutuzov2015-02-161-0/+6
| | | | | | Differential Revision: http://reviews.llvm.org/D7588 llvm-svn: 229388
* [Msan] Disable the fgetgrent_r unit test on FreeBSDViktor Kutuzov2015-02-161-0/+3
| | | | | | Differential Revision: http://reviews.llvm.org/D7343 llvm-svn: 229387
* [Msan] Disable fcvt unit tests on FreeBSDViktor Kutuzov2015-02-161-1/+6
| | | | | | Differential Revision: http://reviews.llvm.org/D7340 llvm-svn: 229386
* [Msan] Fix the getgrnam_r unit test to pass on FreeBSDViktor Kutuzov2015-02-161-1/+5
| | | | | | Differential Revision: http://reviews.llvm.org/D7339 llvm-svn: 229385
* [Msan] Fix the sigaction unit test to build on FreeBSDViktor Kutuzov2015-02-161-0/+1
| | | | | | Differential Revision: http://reviews.llvm.org/D7335 llvm-svn: 229384
* [Msan] Fix the ether unit test to build on FreeBSDViktor Kutuzov2015-02-161-0/+1
| | | | | | Differential Revision: http://reviews.llvm.org/D7334 llvm-svn: 229383
* [Msan] Fix the pthread_attr_get unit test to build on FreeBSDViktor Kutuzov2015-02-041-0/+2
| | | | | | Differential Revision: http://reviews.llvm.org/D7342 llvm-svn: 228125
* Fix missed #endif in rL227790.Viktor Kutuzov2015-02-021-0/+1
| | | | llvm-svn: 227797
* [Msan] Disable unit tests for non-FreeBSD functions on FreeBSDViktor Kutuzov2015-02-021-0/+50
| | | | | | Differential Revision: http://reviews.llvm.org/D7252 llvm-svn: 227790
* [Msan] Fix the shmctl unit tests to pass on FreeBSDViktor Kutuzov2015-01-301-0/+16
| | | | | | Differential Revision: http://reviews.llvm.org/D7253 llvm-svn: 227571
* [MSan] Enable MSan unit tests for all archsMohit K. Bhakkad2015-01-272-5/+5
| | | | | | | | | | Reviewers: Reviewers: eugenis, kcc, samsonov, petarj Subscribers: dsanders, sagar, lldb-commits Differential Revision: http://reviews.llvm.org/D7194 llvm-svn: 227189
* [Msan] Disable the ppoll unit test on FreeBSDViktor Kutuzov2015-01-261-0/+3
| | | | | | Differential Revision: http://reviews.llvm.org/D7145 llvm-svn: 227106
* [Msan] Fix the statfs unit test to pass on FreeBSDViktor Kutuzov2015-01-261-0/+2
| | | | | | Differential Revision: http://reviews.llvm.org/D7144 llvm-svn: 227100
* [Msan] Fix the readv and preadv unit tests to pass on FreeBSDViktor Kutuzov2015-01-221-2/+3
| | | | | | Differential Revision: http://reviews.llvm.org/D7091 llvm-svn: 226801
* [Msan] Fix the strerror_r unit test to build on FreeBSDViktor Kutuzov2015-01-221-1/+1
| | | | | | Differential Revision: http://reviews.llvm.org/D7089 llvm-svn: 226800
* [Msan] Fix the DynRet unit test to build on FreeBSDViktor Kutuzov2015-01-221-2/+1
| | | | | | Differential Revision: http://reviews.llvm.org/D7086 llvm-svn: 226799
* [Msan] Fix the accept unit test to pass on FreeBSDViktor Kutuzov2015-01-211-2/+5
| | | | | | Differential Revision: http://reviews.llvm.org/D7083 llvm-svn: 226650
* [Sanitizers] Intercept opendir()Viktor Kutuzov2015-01-211-0/+10
| | | | | | Differential Revision: http://reviews.llvm.org/D6968 llvm-svn: 226648
* [Msan] Fix the readlink unit test to pass on FreeBSDViktor Kutuzov2015-01-201-1/+3
| | | | | | Differential Revision: http://reviews.llvm.org/D7052 llvm-svn: 226554
* [Msan] Intercept stat() and fstatat() on FreeBSDViktor Kutuzov2015-01-191-2/+6
| | | | | | Differential Revision: http://reviews.llvm.org/D7051 llvm-svn: 226461
* [Msan] Fix use of mmap(MAP_ANONYMOUS) in the unit tests on FreeBSDViktor Kutuzov2015-01-121-2/+3
| | | | | | Differential Revision: http://reviews.llvm.org/D6929 llvm-svn: 225688
* [Msan] Fix tests reading /proc files on FreeBSDViktor Kutuzov2015-01-121-7/+13
| | | | | | Differential Revision: http://reviews.llvm.org/D6926 llvm-svn: 225686
OpenPOWER on IntegriCloud