const char *session_name;
+static
bool schedules_equal(const struct lttng_rotation_schedule *a,
const struct lttng_rotation_schedule *b)
{
return equal;
}
+static
void test_add_null_session(void)
{
enum lttng_rotation_status status;
lttng_rotation_schedule_destroy(size_schedule);
}
+static
void test_add_null_schedule(void)
{
enum lttng_rotation_status status;
"NULL schedule rejected by lttng_session_add_rotation_schedule()");
}
+static
void test_add_uninitialized_schedule(void)
{
enum lttng_rotation_status status;
lttng_rotation_schedule_destroy(periodic_schedule);
}
+static
void test_remove_null_session(void)
{
enum lttng_rotation_status status;
lttng_rotation_schedule_destroy(size_schedule);
}
+static
void test_remove_null_schedule(void)
{
enum lttng_rotation_status status;
"NULL schedule rejected by lttng_session_remove_rotation_schedule()");
}
+static
void test_remove_uninitialized_schedule(void)
{
enum lttng_rotation_status status;
lttng_rotation_schedule_destroy(periodic_schedule);
}
+static
void test_uninitialized_schedule_get(void)
{
uint64_t value;
}
+static
void test_add_list_remove_schedule(
const struct lttng_rotation_schedule *original_schedule)
{
&schedules_count);
ok(status == LTTNG_ROTATION_STATUS_OK && schedules_count == 0,
"Listing returned 0 rotation schedules after removal");
-
+ lttng_rotation_schedules_destroy(list_schedules);
}
+static
void test_add_list_remove_size_schedule(void)
{
struct lttng_rotation_schedule *size_schedule;
lttng_rotation_schedule_destroy(size_schedule);
}
+static
void test_add_list_remove_periodic_schedule(void)
{
struct lttng_rotation_schedule *periodic_schedule;