test: small job queue test
ci/woodpecker/pr/lint Pipeline was successful Details
ci/woodpecker/pr/test Pipeline was successful Details
ci/woodpecker/pr/test-mem Pipeline was successful Details

pull/7/head
Jef Roosens 2023-05-06 11:39:27 +02:00
parent 07f793d768
commit 4f46920025
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 23 additions and 0 deletions

View File

@ -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}
};