X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Funit%2Ftest_rate_policy.cpp;h=755bfca029e4e95f3b90ddb13e06e08740c86df5;hb=319dcddc7409961e156af76666fe70d31baec55a;hp=95c095f5a0bd6720a25663e6a28d679fd43a5349;hpb=c9e313bc594f40a86eed237dce222c0fc99c957f;p=lttng-tools.git diff --git a/tests/unit/test_rate_policy.cpp b/tests/unit/test_rate_policy.cpp index 95c095f5a..755bfca02 100644 --- a/tests/unit/test_rate_policy.cpp +++ b/tests/unit/test_rate_policy.cpp @@ -131,6 +131,7 @@ static void test_rate_policy_every_n(void) lttng_rate_policy_destroy(policy_a); lttng_rate_policy_destroy(policy_b); lttng_rate_policy_destroy(policy_c); + lttng_rate_policy_destroy(policy_from_buffer); lttng_payload_reset(&payload); } @@ -198,10 +199,6 @@ static void test_rate_policy_once_after_n(void) " Getting threshold C"); /* is_equal tests */ - /* TODO: this is the behaviour introduced by the - * lttng_condition_is_equal back in 2017 do we want to fix this and - * return true if both are NULL? - */ ok(false == lttng_rate_policy_is_equal(NULL, NULL), "is equal (NULL,NULL)"); ok(false == lttng_rate_policy_is_equal(policy_a, NULL), @@ -240,6 +237,7 @@ static void test_rate_policy_once_after_n(void) lttng_rate_policy_destroy(policy_a); lttng_rate_policy_destroy(policy_b); lttng_rate_policy_destroy(policy_c); + lttng_rate_policy_destroy(policy_from_buffer); lttng_payload_reset(&payload); }