use librtti for worker/queue/resource
This commit is contained in:
parent
532c68e6e1
commit
2ee87d4ee6
23 changed files with 1078 additions and 396 deletions
35
src/lib/testsuite/test_qobj.c
Normal file
35
src/lib/testsuite/test_qobj.c
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <unity/unity.h>
|
||||
|
||||
#include "qobj.h"
|
||||
#include "utils.h"
|
||||
#include "xstring.h"
|
||||
|
||||
static void test_queue_create(void)
|
||||
{
|
||||
int rc;
|
||||
xce_queue_t q1 = { 0 };
|
||||
xce_queue_t* q = NULL;
|
||||
|
||||
rc = xstring_table_init(32);
|
||||
TEST_ASSERT_TRUE(rc >= 0);
|
||||
|
||||
q = makeQueue(&q1);
|
||||
|
||||
TEST_ASSERT_TRUE(q != NULL);
|
||||
|
||||
destroy(q);
|
||||
|
||||
xstring_table_fini();
|
||||
}
|
||||
|
||||
void test_qobj(void)
|
||||
{
|
||||
printf("\n>> queue obj test\n\n");
|
||||
|
||||
RUN_TEST(test_queue_create);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue