#include <criterion/criterion.h>#include "libtest/queue_utils_lib.h"#include "test_diskq_tools.h"#include "qdisk.c"#include "logqueue-disk-reliable.h"#include "apphook.h"#include "plugin.h"#include <sys/types.h>#include <sys/stat.h>#include <unistd.h>
Macros | |
| #define | TEST_DISKQ_SIZE QDISK_RESERVED_SPACE + 1000 /* 4096 + 1000 */ |
| #define | NUMBER_MESSAGES_IN_QUEUE(n) (n * 3) |
Functions | |
| Test (diskq_reliable, test_over_EOF) | |
| void | _prepare_rewind_backlog_test (LogQueueDiskReliable *dq, gint64 *start_pos) |
| void | test_rewind_backlog_without_using_backlog (LogQueueDiskReliable *dq, gint64 old_read_pos) |
| void | test_rewind_backlog_partially_used_backlog (LogQueueDiskReliable *dq, gint64 old_read_pos) |
| void | test_rewind_backlog_use_whole_backlog (LogQueueDiskReliable *dq) |
| Test (diskq_reliable, test_rewind_backlog) | |
| TestSuite (diskq_reliable,.init=setup,.fini=teardown) | |
Variables | |
| DiskQueueOptions | options |
| #define NUMBER_MESSAGES_IN_QUEUE | ( | n | ) | (n * 3) |
| #define TEST_DISKQ_SIZE QDISK_RESERVED_SPACE + 1000 /* 4096 + 1000 */ |
| void _prepare_rewind_backlog_test | ( | LogQueueDiskReliable * | dq, |
| gint64 * | start_pos | ||
| ) |
| Test | ( | diskq_reliable | , |
| test_over_EOF | |||
| ) |
| Test | ( | diskq_reliable | , |
| test_rewind_backlog | |||
| ) |
| void test_rewind_backlog_partially_used_backlog | ( | LogQueueDiskReliable * | dq, |
| gint64 | old_read_pos | ||
| ) |
| void test_rewind_backlog_use_whole_backlog | ( | LogQueueDiskReliable * | dq | ) |
| void test_rewind_backlog_without_using_backlog | ( | LogQueueDiskReliable * | dq, |
| gint64 | old_read_pos | ||
| ) |
| DiskQueueOptions options |