From e8f919e0ca5cc3330b1a6d12733863eb023c32f0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Wed, 18 May 2016 15:21:41 -0400 Subject: [PATCH] Tests: abort() exclusion test on allocation failure MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- tests/unit/test_ust_data.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_ust_data.c b/tests/unit/test_ust_data.c index 4d1762f54..82d15b66d 100644 --- a/tests/unit/test_ust_data.c +++ b/tests/unit/test_ust_data.c @@ -168,7 +168,7 @@ static void test_create_ust_event_exclusion(void) ok(exclusion != NULL, "Create UST exclusion"); if (!exclusion) { PERROR("zmalloc"); - return; + abort(); } exclusion->count = exclusion_count; @@ -188,7 +188,7 @@ static void test_create_ust_event_exclusion(void) ok(exclusion != NULL, "Create UST exclusion"); if (!exclusion) { PERROR("zmalloc"); - return; + abort(); } exclusion->count = exclusion_count; -- 2.34.1