X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Funit%2Ftest_condition.c;h=af9dd7a86a9b59d0f371939693a5ee2f62ca3897;hb=6296f20cf714d4f575be5bd75c3d489893809f65;hp=864c6a840eff692080df098c4186061576189903;hpb=85b053182c4e300c717483ad231f5c04cbf5e4b7;p=lttng-tools.git diff --git a/tests/unit/test_condition.c b/tests/unit/test_condition.c index 864c6a840..af9dd7a86 100644 --- a/tests/unit/test_condition.c +++ b/tests/unit/test_condition.c @@ -20,7 +20,8 @@ #include #include #include -#include +#include +#include #include #include #include @@ -60,7 +61,7 @@ void test_condition_event_rule(void) tracepoint = lttng_event_rule_tracepoint_create(LTTNG_DOMAIN_UST); ok(tracepoint, "tracepoint UST_DOMAIN"); - status = lttng_event_rule_tracepoint_set_pattern(tracepoint, pattern); + status = lttng_event_rule_tracepoint_set_name_pattern(tracepoint, pattern); ok(status == LTTNG_EVENT_RULE_STATUS_OK, "Setting pattern"); status = lttng_event_rule_tracepoint_set_filter(tracepoint, filter); @@ -77,10 +78,10 @@ void test_condition_event_rule(void) "Setting exclusion pattern"); } - condition = lttng_condition_on_event_create(tracepoint); + condition = lttng_condition_event_rule_matches_create(tracepoint); ok(condition, "Created condition"); - condition_status = lttng_condition_on_event_get_rule( + condition_status = lttng_condition_event_rule_matches_get_rule( condition, &tracepoint_tmp); ok(condition_status == LTTNG_CONDITION_STATUS_OK, "Getting event rule from event rule condition");