#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. */
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);
}
" 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),
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);
}