llvm-project/compiler-rt/test/scudo
Kostya Kortchinsky 4adf24502e [scudo] Add verbose failures in place of CHECK(0)
Summary:
The current `FailureHandler` mechanism was fairly opaque with regard to the
failure reason due to using `CHECK(0)`. Scudo is a bit different from the other
Sanitizers as it prefers to avoid spurious processing in its failure path. So
we just `dieWithMessage` using a somewhat explicit string.

Adapted the tests for the new strings.

While this takes care of the `OnBadRequest` & `OnOOM` failures, the next step
is probably to migrate the other Scudo failures in the same failes (header
corruption, invalid state and so on).

Reviewers: alekseyshl

Reviewed By: alekseyshl

Subscribers: filcab, mgorny, delcypher, #sanitizers, llvm-commits

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

llvm-svn: 334843
2018-06-15 16:45:19 +00:00
..
CMakeLists.txt [scudo] Android build support 2017-09-18 15:40:53 +00:00
aligned-new.cpp [scudo] Add verbose failures in place of CHECK(0) 2018-06-15 16:45:19 +00:00
alignment.c [scudo] Make logging more consistent 2018-03-07 16:22:16 +00:00
double-free.cpp [scudo] Make some tests less Linux-y 2018-02-26 17:14:44 +00:00
interface.cpp [scudo] Touch memory to count as RSS 2018-01-01 18:19:06 +00:00
lit.cfg [scudo] Use -fsanitize=scudo rather than --whole-archive in tests 2018-01-18 20:02:56 +00:00
lit.site.cfg.in [scudo] Additional modifications for Android tests support 2017-09-18 20:31:57 +00:00
malloc.cpp [scudo] Implement stricter separation of C vs C++ 2017-11-01 15:28:20 +00:00
memalign.c [scudo] Add verbose failures in place of CHECK(0) 2018-06-15 16:45:19 +00:00
mismatch.cpp [scudo] Make some tests less Linux-y 2018-02-26 17:14:44 +00:00
options.cpp [scudo] Implement stricter separation of C vs C++ 2017-11-01 15:28:20 +00:00
overflow.c [scudo] Implement stricter separation of C vs C++ 2017-11-01 15:28:20 +00:00
preinit.c [scudo] Implement stricter separation of C vs C++ 2017-11-01 15:28:20 +00:00
preload.cpp [scudo] Implement stricter separation of C vs C++ 2017-11-01 15:28:20 +00:00
quarantine.c [scudo] Implement stricter separation of C vs C++ 2017-11-01 15:28:20 +00:00
random_shuffle.cpp [scudo] Implement stricter separation of C vs C++ 2017-11-01 15:28:20 +00:00
realloc.cpp [scudo] Make some tests less Linux-y 2018-02-26 17:14:44 +00:00
rss.c [scudo] Soft and hard RSS limit checks 2017-11-15 16:40:27 +00:00
secondary.c [scudo] Implement stricter separation of C vs C++ 2017-11-01 15:28:20 +00:00
sized-delete.cpp [scudo] Make logging more consistent 2018-03-07 16:22:16 +00:00
sizes.cpp [scudo] Add verbose failures in place of CHECK(0) 2018-06-15 16:45:19 +00:00
stats.c [scudo] Adding an interface function to print allocator stats 2018-04-25 18:52:29 +00:00
threads.c [scudo] Implement stricter separation of C vs C++ 2017-11-01 15:28:20 +00:00
tsd_destruction.c [scudo] Implement stricter separation of C vs C++ 2017-11-01 15:28:20 +00:00
valloc.c [scudo] Add verbose failures in place of CHECK(0) 2018-06-15 16:45:19 +00:00