Fix: futex wait: handle spurious futex wakeups
[lttng-tools.git] / tests / unit / test_rate_policy.c
index fcb27733c273020e2e010ba5a2b623d10edace62..91a73a7aa786f3538d31a7f0131629b936221e06 100644 (file)
@@ -132,6 +132,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);
 }
 
@@ -199,10 +200,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),
@@ -241,6 +238,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.025089 seconds and 4 git commands to generate.