diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-14 11:00:44 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-14 11:00:44 -0500 |
commit | 52abde22130dc37d6ab7d0f3dc6e4a8f97d990ed (patch) | |
tree | 4d743ef95a66d34d4079a51af1d20617ed04c04c | |
parent | aec0842632ea32fec9939c221fb5554d1900a3a5 (diff) | |
download | horizon-52abde22130dc37d6ab7d0f3dc6e4a8f97d990ed.tar.gz horizon-52abde22130dc37d6ab7d0f3dc6e4a8f97d990ed.tar.bz2 horizon-52abde22130dc37d6ab7d0f3dc6e4a8f97d990ed.tar.xz horizon-52abde22130dc37d6ab7d0f3dc6e4a8f97d990ed.zip |
tests: Add Valgrind support and suppression file
-rw-r--r-- | .valgrindrc | 16 | ||||
-rw-r--r-- | tests/valgrind.supp | 22 |
2 files changed, 38 insertions, 0 deletions
diff --git a/.valgrindrc b/.valgrindrc new file mode 100644 index 0000000..6ed5787 --- /dev/null +++ b/.valgrindrc @@ -0,0 +1,16 @@ +--demangle=yes +--error-exitcode=1 +--show-error-list=yes +--default-suppressions=yes +--suppressions=tests/valgrind.supp +--alignment=16 +--redzone-size=128 +--read-var-info=yes +--leak-check=full +--leak-resolution=high +--show-leak-kinds=all +--leak-check-heuristics=all +--undef-value-errors=yes +--track-origins=yes +--keep-stacktraces=alloc-and-free +--show-mismatched-frees=yes diff --git a/tests/valgrind.supp b/tests/valgrind.supp new file mode 100644 index 0000000..b9c60f5 --- /dev/null +++ b/tests/valgrind.supp @@ -0,0 +1,22 @@ +# musl ldpath file stuff (upstream this into valgrind apk someday) +{ + musl:ldpath + Memcheck:Leak + match-leak-kinds: reachable + fun:realloc + fun:getdelim + ... + fun:__dls3 + obj:/lib/ld-musl-* +} +# CLIPP global ctor in .init +{ + clipp:ctor + Memcheck:Leak + match-leak-kinds: reachable + fun:malloc + ... + fun:do_init_fini + fun:__libc_start_init + obj:/lib/ld-musl-* +} |