diff --git a/test/job-queue/test_job_queue.c b/test/job-queue/test_job_queue.c new file mode 100644 index 0000000..3187cda --- /dev/null +++ b/test/job-queue/test_job_queue.c @@ -0,0 +1,23 @@ +#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} +};