llvm-project/compiler-rt/test/scudo
Kostya Kortchinsky e245ec0cf0 [scudo] Make logging more consistent
Summary:
A few changes related to logging:
- prepend `Scudo` to the error messages so that users can identify that we
  reported an error;
- replace a couple of `Report` calls in the RSS check code with
  `dieWithMessage`/`Print`, mark a condition as `UNLIKELY` in the process;
- change some messages so that they all look more or less the same. This
  includes the `CHECK` message;
- adapt a couple of tests with the new strings.

A couple of side notes: this results in a few 1-line-blocks, for which I left
brackets. There doesn't seem to be any style guide for that, I can remove them
if need be. I didn't use `SanitizerToolName` in the strings, but directly
`Scudo` because we are the only users, I could change that too.

Reviewers: alekseyshl, flowerhack

Reviewed By: alekseyshl

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

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

llvm-svn: 326901
2018-03-07 16:22:16 +00:00
..
CMakeLists.txt [scudo] Android build support 2017-09-18 15:40:53 +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] Make some tests less Linux-y 2018-02-26 17:14:44 +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] Make some tests less Linux-y 2018-02-26 17:14:44 +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] Attempt to re-enable the valloc test on armhf 2018-01-04 18:35:28 +00:00