From 8da6676a029f128753941eedcf2a8b4389cd80f1 Mon Sep 17 00:00:00 2001 From: David Goldblatt Date: Tue, 7 Apr 2020 11:12:53 -0700 Subject: [PATCH] Don't do reentrant testing in junk tests. --- test/unit/junk.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/unit/junk.c b/test/unit/junk.c index 5a74c3d7..314da3ce 100644 --- a/test/unit/junk.c +++ b/test/unit/junk.c @@ -185,7 +185,11 @@ int main(void) { junk_alloc_callback = &test_junk; junk_free_callback = &test_junk; - return test( + /* + * We check the last pointer junked. If a reentrant call happens, that + * might be an internal allocation. + */ + return test_no_reentrancy( test_junk_alloc_free, test_realloc_expand); }