Change backing type of lttng_uuid to std::array
[lttng-tools.git] / tests / unit / test_rate_policy.cpp
index 95c095f5a0bd6720a25663e6a28d679fd43a5349..755bfca029e4e95f3b90ddb13e06e08740c86df5 100644 (file)
@@ -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);
 }
 
This page took 0.023181 seconds and 4 git commands to generate.