X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fnotification%2Ftest_notification_notifier_discarded_count;h=51b6e04eba4a296f7aea4be030d2f6cc8e221099;hp=2186bfb2ce4d6703f9fe8a917be9b32f758c674b;hb=665db06360d2bb830a47a2562ef0ebc28a1d75df;hpb=1d4b59f247e2692bf1e9c3c0aac93a47389d20dd diff --git a/tests/regression/tools/notification/test_notification_notifier_discarded_count b/tests/regression/tools/notification/test_notification_notifier_discarded_count index 2186bfb2c..51b6e04eb 100755 --- a/tests/regression/tools/notification/test_notification_notifier_discarded_count +++ b/tests/regression/tools/notification/test_notification_notifier_discarded_count @@ -78,7 +78,7 @@ function test_kernel_notifier_discarded_count done lttng_add_trigger_ok "$trigger_name" \ - --condition on-event --kernel lttng_test_filter_event \ + --condition event-rule-matches --kernel lttng_test_filter_event \ --action notify trigger_discarded_nb=$(trigger_get_discarded_notif_number "$trigger_name") @@ -103,11 +103,11 @@ function test_kernel_notifier_discarded_count # Confirm that no notifier is enabled. list_triggers_line_count=$("$FULL_LTTNG_BIN" list-triggers | wc -l) - is "$list_triggers_line_count" "0" "No \`on-event\` kernel notifier enabled as expected" + is "$list_triggers_line_count" "0" "No \`event-rule-matches\` kernel notifier enabled as expected" # Enable another notifier and list it to confirm the counter was cleared. lttng_add_trigger_ok "$trigger_name" \ - --condition on-event --kernel lttng_test_filter_event \ + --condition event-rule-matches --kernel lttng_test_filter_event \ --action notify trigger_discarded_nb=$(trigger_get_discarded_notif_number "$trigger_name") @@ -129,13 +129,13 @@ function test_kernel_notifier_discarded_count_max_bucket diag "Kernel event notifer error counter bucket limit" for i in $(seq 3); do lttng_add_trigger_ok "$i" \ - --condition on-event --kernel my_event_that_doesnt_need_to_really_exist_$i \ + --condition event-rule-matches --kernel my_event_that_doesnt_need_to_really_exist_$i \ --action notify done for i in $(seq 4 5); do lttng_add_trigger_fail "$i" \ - --condition on-event --kernel my_event_that_doesnt_need_to_really_exist_$i \ + --condition event-rule-matches --kernel my_event_that_doesnt_need_to_really_exist_$i \ --action notify done @@ -180,7 +180,7 @@ function test_ust_notifier_discarded_count done lttng_add_trigger_ok "$trigger_name" \ - --condition on-event --userspace tp:tptest \ + --condition event-rule-matches --userspace tp:tptest \ --action notify trigger_discarded_nb=$(trigger_get_discarded_notif_number "$trigger_name") @@ -202,11 +202,11 @@ function test_ust_notifier_discarded_count # Confirm that no notifier is enabled. list_triggers_line_count=$("$FULL_LTTNG_BIN" list-triggers | wc -l) - is "$list_triggers_line_count" "0" "No \`on-event\` userspace notifier enabled as expected" + is "$list_triggers_line_count" "0" "No \`event-rule-matches\` userspace notifier enabled as expected" # Enable another notifier and list it to confirm the counter was cleared. lttng_add_trigger_ok "$trigger_name" \ - --condition on-event --userspace tp:tptest \ + --condition event-rule-matches --userspace tp:tptest \ --action notify trigger_discarded_nb=$(trigger_get_discarded_notif_number "$trigger_name") @@ -226,13 +226,13 @@ function test_ust_notifier_discarded_count_max_bucket diag "UST event notifer error counter bucket limit" for i in $(seq 3); do lttng_add_trigger_ok "$i" \ - --condition on-event --userspace my_event_that_doesnt_need_to_really_exist_$i \ + --condition event-rule-matches --userspace my_event_that_doesnt_need_to_really_exist_$i \ --action notify done for i in $(seq 4 5); do lttng_add_trigger_fail "$i" \ - --condition on-event --userspace my_event_that_doesnt_need_to_really_exist_$i \ + --condition event-rule-matches --userspace my_event_that_doesnt_need_to_really_exist_$i \ --action notify done