test/memleaktest.c: Modify for use with address/leak sanitizer
authorRichard Levitte <levitte@openssl.org>
Mon, 25 Nov 2019 16:13:10 +0000 (17:13 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 10 Dec 2019 13:16:12 +0000 (14:16 +0100)
commitea7a952c8aab33d0bb0a2bbd210305d722a5702b
tree03bd1751a361cdaf82794c0039c149863121fce7
parent22c22369bc09988eb8c6fdf4f543581a78fd3eb1
test/memleaktest.c: Modify for use with address/leak sanitizer

Detects if leak sanitizing is on, and directs the exit code accordingly.

Note that this program is designed to fail when leaking, as that's
expected, so to make it easy for wrapper scripts, we also make it look
like it fails when sanitizing isn't on.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9294)
test/memleaktest.c
test/recipes/90-test_memleak.t