From: Jérémie Galarneau Date: Wed, 18 May 2016 19:21:41 +0000 (-0400) Subject: Tests: abort() exclusion test on allocation failure X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=e8f919e0ca5cc3330b1a6d12733863eb023c32f0;p=lttng-tools.git Tests: abort() exclusion test on allocation failure Signed-off-by: Jérémie Galarneau --- 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;