X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Ftrigger%2Futils%2Fnotification-client.c;h=ac572bfc6d870233570adafeb267de0978f43c97;hb=702f26c8641ee4554c629d13b9367b1e93f96e31;hp=54248f6330cca7f3202d6b75f488148685123655;hpb=3e68c9e87ed6fd601e953b9bb10e507a6a92a8f0;p=lttng-tools.git diff --git a/tests/regression/tools/trigger/utils/notification-client.c b/tests/regression/tools/trigger/utils/notification-client.c index 54248f633..ac572bfc6 100644 --- a/tests/regression/tools/trigger/utils/notification-client.c +++ b/tests/regression/tools/trigger/utils/notification-client.c @@ -14,7 +14,7 @@ #include #include -#include +#include #include #include "utils.h" @@ -36,22 +36,22 @@ static struct option long_options[] = {0, 0, 0, 0} }; -static bool action_group_contains_notify( - const struct lttng_action *action_group) +static bool action_list_contains_notify( + const struct lttng_action *action_list) { unsigned int i, count; enum lttng_action_status status = - lttng_action_group_get_count(action_group, &count); + lttng_action_list_get_count(action_list, &count); if (status != LTTNG_ACTION_STATUS_OK) { - printf("Failed to get action count from action group\n"); + printf("Failed to get action count from action list\n"); exit(1); } for (i = 0; i < count; i++) { const struct lttng_action *action = - lttng_action_group_get_at_index( - action_group, i); + lttng_action_list_get_at_index( + action_list, i); const enum lttng_action_type action_type = lttng_action_get_type(action); @@ -181,7 +181,7 @@ int main(int argc, char **argv) } } if (!((action_type == LTTNG_ACTION_TYPE_GROUP && - action_group_contains_notify(action)) || + action_list_contains_notify(action)) || action_type == LTTNG_ACTION_TYPE_NOTIFY)) { /* "The action of trigger is not notify, skipping. */ continue; @@ -240,7 +240,6 @@ int main(int argc, char **argv) break; case LTTNG_NOTIFICATION_CHANNEL_STATUS_CLOSED: printf("Notification channel was closed by peer.\n"); - ret = -1; break; default: fprintf(stderr, "A communication error occurred on the notification channel.\n");