Tests: notification: fail on trigger unregistration failure
[lttng-tools.git] / 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.023149 seconds and 4 git commands to generate.