Tests: notification: fail on trigger unregistration failure
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 28 Apr 2021 17:16:12 +0000 (13:16 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 28 Apr 2021 21:02:46 +0000 (17:02 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I474c92f34604100081676dda484513cc8a950c73

tests/regression/tools/notification/notification.c

index 66cef82a0592550ac99388d5cc71eb0e16afbad7..bdea55921d3825cfbfbee824c509e01bc4596327 100644 (file)
@@ -1220,7 +1220,8 @@ static void test_subscription_twice(const char *session_name,
                        domain_type, BUFFER_USAGE_TYPE_LOW, 0.99, &condition,
                        &action, &trigger);
        if (ret) {
-               fail("Setup error on trigger registration");
+               fail("Setup error on trigger registration in %s()",
+                               __FUNCTION__);
                goto end;
        }
 
@@ -1245,7 +1246,11 @@ static void test_subscription_twice(const char *session_name,
                        "Subscribe to a condition for which subscription was already done");
 
 end:
-       lttng_unregister_trigger(trigger);
+       ret = lttng_unregister_trigger(trigger);
+       if (ret) {
+               fail("Failed to unregister trigger in %s()", __FUNCTION__);
+       }
+
        lttng_trigger_destroy(trigger);
        lttng_notification_channel_destroy(notification_channel);
        lttng_action_destroy(action);
This page took 0.027276 seconds and 4 git commands to generate.