Tests: abort() exclusion test on allocation failure
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 18 May 2016 19:21:41 +0000 (15:21 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 19 May 2016 05:38:34 +0000 (01:38 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/unit/test_ust_data.c

index 4d1762f5453086acf5e83e9cc93dcca2cd8bf1e3..82d15b66d21ff6e34e20538c0b4e45723ad0d3d2 100644 (file)
@@ -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;
This page took 0.025463 seconds and 4 git commands to generate.