libvieter/test/job-queue/test_job_queue.c

24 lines
475 B
C

#include "acutest.h"
#include "vieter_job_queue_internal.h"
void test_init() {
vieter_job_queue *queue = vieter_job_queue_init();
TEST_CHECK(queue != NULL);
vieter_job_queue_free(queue);
}
void test_job_path() {
vieter_job_queue *queue = vieter_job_queue_init();
TEST_CHECK(queue != NULL);
vieter_job *job = vieter_job_init();
job->next_scheduled_time = 5;
vieter_job_queue_free(queue);
}
TEST_LIST = {
{"job queue init", test_init},
{NULL, NULL}
};