forked from vieter-v/libvieter
test: small job queue test
parent
07f793d768
commit
4f46920025
|
@ -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}
|
||||
};
|
Loading…
Reference in New Issue