llvm-project/compiler-rt/lib/sanitizer_common/tests
Etienne Bergeron 94500cb532 [compiler-rt] Fix Sanitizer-common Unittests on win64
Summary:
This patch is fixing unittests that are broken on windows (64-bits).

Tests under 'SANITIZER_CAN_USE_ALLOCATOR64' are disabled.
A custom allocator for windows based on WinHeap API will replace these tests.

Tested on Win32/Win64 (Ninja and MSVC).
Tested on Linux 32-bit/64-bit clang.

```
C:\src\llvm\build64\projects\compiler-rt>lib\sanitizer_common\tests\Release\Sanitizer-x86_64-Test.exe
[==========] Running 101 tests from 12 test cases.
[----------] Global test environment set-up.
[----------] 51 tests from SanitizerCommon
[ RUN      ] SanitizerCommon.DefaultSizeClassMap
[       OK ] SanitizerCommon.DefaultSizeClassMap (1 ms)
[ RUN      ] SanitizerCommon.CompactSizeClassMap
[       OK ] SanitizerCommon.CompactSizeClassMap (1 ms)
[ RUN      ] SanitizerCommon.InternalSizeClassMap
[       OK ] SanitizerCommon.InternalSizeClassMap (1 ms)
[ RUN      ] SanitizerCommon.SizeClassAllocator32Compact
[       OK ] SanitizerCommon.SizeClassAllocator32Compact (828 ms)
[ RUN      ] SanitizerCommon.SizeClassAllocator32CompactMetadataStress
[       OK ] SanitizerCommon.SizeClassAllocator32CompactMetadataStress (914 ms)
[ RUN      ] SanitizerCommon.SizeClassAllocator32MapUnmapCallback

[...]

[----------] 4 tests from Symbolizer
[ RUN      ] Symbolizer.ExtractToken
[       OK ] Symbolizer.ExtractToken (0 ms)
[ RUN      ] Symbolizer.ExtractInt
[       OK ] Symbolizer.ExtractInt (0 ms)
[ RUN      ] Symbolizer.ExtractUptr
[       OK ] Symbolizer.ExtractUptr (0 ms)
[ RUN      ] Symbolizer.ExtractTokenUpToDelimiter
[       OK ] Symbolizer.ExtractTokenUpToDelimiter (0 ms)
[----------] 4 tests from Symbolizer (24 ms total)

[----------] Global test environment tear-down
[==========] 101 tests from 12 test cases ran. (5090 ms total)
[  PASSED  ] 101 tests.
```

Reviewers: rnk

Subscribers: chrisha, wang0109, llvm-commits, kubabrecka

Differential Revision: http://reviews.llvm.org/D21817

llvm-svn: 274174
2016-06-29 21:57:58 +00:00
..
CMakeLists.txt [compiler-rt] Fix passing debug information to unittest. 2016-06-29 19:58:02 +00:00
sanitizer_allocator_test.cc [sanitizer] [SystemZ] Add virtual space size. 2016-04-14 12:56:15 +00:00
sanitizer_allocator_testlib.cc [sanitizer] add a function MmapNoAccess that mmaps a protected region *somewhere*; use MmapNoAccess in the Allocator when SpaceBeg is not a constant. In this mode the allocator will be a bit more hardened 2016-04-23 00:05:24 +00:00
sanitizer_atomic_test.cc asan: fix atomic operations on ARM 2014-01-22 14:13:37 +00:00
sanitizer_bitvector_test.cc [sanitizer] implement node removal in Deadlock graph 2014-02-17 11:21:52 +00:00
sanitizer_bvgraph_test.cc [sanitizer] speed up the bitvector-based deadlock detector by ~15% (iterate over the currently held locks using the array, not the bitvector. Bitvector is not the best data structure to iterate over) 2014-03-31 07:23:50 +00:00
sanitizer_common_test.cc Reapply: [asan] On OS X, log reports to syslog and os_trace 2015-11-20 18:41:44 +00:00
sanitizer_deadlock_detector_test.cc Remove TSAN_DEBUG in favor of SANITIZER_DEBUG. 2015-01-03 04:29:12 +00:00
sanitizer_flags_test.cc [sanitizer] Make unrecognized flags not fatal. 2015-01-19 12:22:57 +00:00
sanitizer_format_interceptor_test.cc [Sanitizer tests] Fix most of the build problems on Windows 2014-05-13 12:02:53 +00:00
sanitizer_ioctl_test.cc [Compiler-rt] Fix ioctl codes for MIPS in sanitizer_ioctl_test 2016-03-11 05:57:20 +00:00
sanitizer_libc_test.cc [compiler-rt] Do not pull in min and max macros from windows.h 2015-11-20 20:18:06 +00:00
sanitizer_linux_test.cc Fixed non-NULL terminating array bug in SanitizerCommon.StartSubprocessTest that caused them to fail sometimes and act flaky. 2016-02-15 05:11:51 +00:00
sanitizer_list_test.cc
sanitizer_mutex_test.cc [Sanitizer tests] Fix most of the build problems on Windows 2014-05-13 12:02:53 +00:00
sanitizer_nolibc_test.cc
sanitizer_nolibc_test_main.cc
sanitizer_posix_test.cc [asan] Fix SanitizerCommon.PthreadDestructorIterations test on Android L. 2015-06-29 20:28:55 +00:00
sanitizer_printf_test.cc [compiler-rt] Fix Sanitizer-common Unittests on win64 2016-06-29 21:57:58 +00:00
sanitizer_procmaps_test.cc [Sanitizer] Introduce ListOfModules object and use it to replace GetListOfModules(). 2016-02-22 18:52:51 +00:00
sanitizer_pthread_wrappers.h [Sanitizer tests] Add sanitizer_test_config.h to make the inclusion of gtest.h conditional 2014-05-13 13:25:12 +00:00
sanitizer_stackdepot_test.cc Change StackDepot interface to use StackTrace more extensively 2014-10-26 06:23:07 +00:00
sanitizer_stacktrace_printer_test.cc [sanitizer_common] Added VS-style output for source locations 2015-06-04 01:20:06 +00:00
sanitizer_stacktrace_test.cc [sanitizer] Stop unwinding the stack when a close-to-zero PC is found 2016-06-27 15:32:18 +00:00
sanitizer_stoptheworld_test.cc asan: fix signal handling during stoptheworld 2015-03-02 17:36:02 +00:00
sanitizer_stoptheworld_testlib.cc
sanitizer_suppressions_test.cc Unit test the CRLF change to suppression parsing 2015-08-27 18:05:33 +00:00
sanitizer_symbolizer_test.cc [sanitizers] Fixup to r266494; the Unit test should not run on Windows 2016-04-16 00:32:16 +00:00
sanitizer_test_config.h [Sanitizer tests] Add sanitizer_test_config.h to make the inclusion of gtest.h conditional 2014-05-13 13:25:12 +00:00
sanitizer_test_main.cc [compiler-rt] Fix Sanitizer-common Unittests on win64 2016-06-29 21:57:58 +00:00
sanitizer_test_utils.h [Sanitizers] Intercept snprintf_l() on FreeBSD 2014-12-22 12:29:40 +00:00
sanitizer_thread_registry_test.cc tsan: address comments in r214912 2014-09-02 09:34:34 +00:00
standalone_malloc_test.cc