llvm-project/compiler-rt/lib/scudo/standalone/tests
Kostya Kortchinsky d44cb7a656 [scudo][standalone] Introduce the C & C++ wrappers [fixed]
Summary:
This is a redo of D63612.

Two problems came up on some bots:
- `__builtin_umull_overflow` was not declared. This is likely due to an
  older clang or gcc, so add a guard with `__has_builtin` and fallback
  to a division in the event the builtin doesn't exist;
- contradicting definition for `malloc`, etc. This is AFAIU due to the
  fact that we ended up transitively including `stdlib.h` in the `.inc`
  due to it being the flags parser header: so move the include to the
  cc instead.

This should fix the issues, but since those didn't come up in my local
tests it's mostly guesswork.

Rest is the same!

Reviewers: morehouse, hctim, eugenis, vitalybuka, dyung, hans

Reviewed By: morehouse, dyung, hans

Subscribers: srhines, mgorny, delcypher, jfb, #sanitizers, llvm-commits

Tags: #llvm, #sanitizers

Differential Revision: https://reviews.llvm.org/D63831

llvm-svn: 364547
2019-06-27 14:23:26 +00:00
..
CMakeLists.txt [scudo][standalone] Introduce the C & C++ wrappers [fixed] 2019-06-27 14:23:26 +00:00
atomic_test.cc [scudo][standalone] Introduce platform specific code & mutexes 2019-02-26 16:47:25 +00:00
bytemap_test.cc [scudo][standalone] Unmap memory in tests 2019-06-11 19:50:12 +00:00
checksum_test.cc [scudo][standalone] Implement checksumming functions 2019-03-12 14:46:31 +00:00
chunk_test.cc [scudo][standalone] Introduce the chunk header 2019-05-08 21:54:02 +00:00
combined_test.cc [scudo][standalone] Introduce the combined allocator 2019-06-17 15:23:11 +00:00
flags_test.cc [scudo][standalone] Add flags & related parsers 2019-04-09 14:57:25 +00:00
list_test.cc [scudo][standalone] Introduce platform specific code & mutexes 2019-02-26 16:47:25 +00:00
map_test.cc [scudo][standalone] Add the memory reclaiming mechanism 2019-04-30 14:56:18 +00:00
mutex_test.cc [scudo][standalone] Introduce the Secondary allocator 2019-04-24 14:20:49 +00:00
primary_test.cc [scudo][standalone] Unmap memory in tests 2019-06-11 19:50:12 +00:00
quarantine_test.cc [scudo][standalone] Introduce the Quarantine 2019-05-07 15:40:09 +00:00
release_test.cc [scudo][standalone] Add the memory reclaiming mechanism 2019-04-30 14:56:18 +00:00
report_test.cc [scudo][standalone] Add error reports 2019-03-20 14:31:23 +00:00
scudo_unit_test_main.cc
secondary_test.cc [scudo][standalone] Introduce the Primary(s) and LocalCache 2019-05-20 14:40:04 +00:00
size_class_map_test.cc [scudo][standalone] Introduce the SizeClassMap 2019-04-25 15:49:34 +00:00
stats_test.cc [scudo][standalone] Adding a stats class 2019-03-07 21:44:35 +00:00
strings_test.cc [scudo][standalone] Add string utility functions 2019-03-19 14:47:05 +00:00
tsd_test.cc [scudo][standalone] Unmap memory in tests 2019-06-11 19:50:12 +00:00
vector_test.cc [scudo][standalone] Add a standalone vector class 2019-02-27 16:30:05 +00:00
wrappers_c_test.cc [scudo][standalone] Introduce the C & C++ wrappers [fixed] 2019-06-27 14:23:26 +00:00
wrappers_cpp_test.cc [scudo][standalone] Introduce the C & C++ wrappers [fixed] 2019-06-27 14:23:26 +00:00