X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Ftrigger%2Futils%2Fnotification-client.c;h=11e9206964b80974dffbabbf1e77d30afa61eb3f;hb=45cc2527c1b679884570130eca8f285b2a9a8406;hp=98c00d6f7a77303f269c00cf9bed98601021b1c6;hpb=0efb2ad7fc448283184e43d6fb0915febae45384;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 98c00d6f7..11e920696 100644 --- a/tests/regression/tools/trigger/utils/notification-client.c +++ b/tests/regression/tools/trigger/utils/notification-client.c @@ -173,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. */