[PATCH] D43393: [scudo] Make some tests less Linux-y
Kostya Kortchinsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 16 08:55:02 PST 2018
cryptoad created this revision.
cryptoad added a reviewer: alekseyshl.
Herald added subscribers: Sanitizers, delcypher.
Start making the Scudo tests less Linux-y:
- `malloc_usable_size` doesn't exist everywhere, so replace them with `__sanitizer_get_allocated_size` which we provide;
- move all the `memalign` related tests into `memalign.c` since it's also not available everywhere.
I also noticed that the `memalign.c` was missing a line in one of the loops.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D43393
Files:
test/scudo/double-free.cpp
test/scudo/memalign.c
test/scudo/mismatch.cpp
test/scudo/realloc.cpp
test/scudo/sizes.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43393.134640.patch
Type: text/x-patch
Size: 7946 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180216/2d24ac57/attachment.bin>
More information about the llvm-commits
mailing list