X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Funit%2Ftest_event_rule.c;h=72c37709faab7d5346e5fe6221ea2a974b231f7b;hp=b92a10aac0b6e1a23814b742b2f8ca3490f11c7e;hb=10685de6af924c0ea83e451697639ed9c16586cc;hpb=405f9e7db1cd7c023614ae249f0705fbb3da514c;ds=sidebyside diff --git a/tests/unit/test_event_rule.c b/tests/unit/test_event_rule.c index b92a10aac..72c37709f 100644 --- a/tests/unit/test_event_rule.c +++ b/tests/unit/test_event_rule.c @@ -37,7 +37,7 @@ int lttng_opt_quiet = 1; int lttng_opt_verbose; int lttng_opt_mi; -#define NUM_TESTS 185 +#define NUM_TESTS 184 struct tracepoint_test { enum lttng_domain_type type; @@ -261,13 +261,9 @@ static void test_event_rule_userspace_probe(void) lttng_payload_init(&payload); - uprobe = lttng_event_rule_userspace_probe_create(); + uprobe = lttng_event_rule_userspace_probe_create(probe_location); ok(uprobe, "uprobe event rule object creation."); - status = lttng_event_rule_userspace_probe_set_location(uprobe, probe_location); - ok(status == LTTNG_EVENT_RULE_STATUS_OK, - "Setting uprobe event rule location."); - status = lttng_event_rule_userspace_probe_get_location( uprobe, &probe_location_tmp); ok(status == LTTNG_EVENT_RULE_STATUS_OK,