X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=tests%2Fregression%2Ftools%2Ftrigger%2Futils%2Fnotification-client.c;h=11e9206964b80974dffbabbf1e77d30afa61eb3f;hb=f250b40e2179eccdb83766bf4abef5a35036c47b;hp=ac572bfc6d870233570adafeb267de0978f43c97;hpb=702f26c8641ee4554c629d13b9367b1e93f96e31;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 ac572bfc6..11e920696 100644 --- a/tests/regression/tools/trigger/utils/notification-client.c +++ b/tests/regression/tools/trigger/utils/notification-client.c @@ -62,6 +62,7 @@ static bool action_list_contains_notify( return false; } +/* Only expects named triggers. */ static bool is_trigger_name(const char *expected_trigger_name, struct lttng_notification *notification) { @@ -172,15 +173,15 @@ int main(int argc, char **argv) const char *trigger_name = NULL; lttng_trigger_get_name(trigger, &trigger_name); - if (strcmp(trigger_name, expected_trigger_name)) { + if (strcmp(trigger_name, expected_trigger_name) != 0) { /* Might match the end event trigger */ if (end_trigger_name != NULL && strcmp(trigger_name, - end_trigger_name)) { + end_trigger_name) != 0) { continue; } } - if (!((action_type == LTTNG_ACTION_TYPE_GROUP && + if (!((action_type == LTTNG_ACTION_TYPE_LIST && action_list_contains_notify(action)) || action_type == LTTNG_ACTION_TYPE_NOTIFY)) { /* "The action of trigger is not notify, skipping. */