Tests: clean-up: rate policy: remove stale comment
[lttng-tools.git] / tests / unit / test_rate_policy.cpp
index d9ae4b7b6ba63fc94100c4bae3a3f9f126c8759a..755bfca029e4e95f3b90ddb13e06e08740c86df5 100644 (file)
@@ -14,9 +14,9 @@
 
 #include <tap/tap.h>
 
-#include <common/payload-view.h>
-#include <common/payload.h>
-#include <lttng/action/rate-policy-internal.h>
+#include <common/payload-view.hpp>
+#include <common/payload.hpp>
+#include <lttng/action/rate-policy-internal.hpp>
 #include <lttng/action/rate-policy.h>
 
 /* For error.h. */
@@ -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.02345 seconds and 4 git commands to generate.