save works
This commit is contained in:
parent
b748e30d20
commit
f4b1ba4cd7
21 changed files with 373 additions and 324 deletions
|
|
@ -2,28 +2,40 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include <rtti.h>
|
||||
|
||||
#include <unity/unity.h>
|
||||
|
||||
#include "qobj.h"
|
||||
#include "utils.h"
|
||||
#include "xstring.h"
|
||||
#include "kvmgr.h"
|
||||
|
||||
static void test_queue_create(void)
|
||||
{
|
||||
int rc;
|
||||
xce_queue_t q1 = { 0 };
|
||||
xce_queue_t* q = NULL;
|
||||
int rc;
|
||||
kvmgr_params_t params = { .key_type = KVMGR_KEY_STRING,
|
||||
.nslots = 32,
|
||||
.delta = 32,
|
||||
.datakiller = destroy };
|
||||
var qmgr;
|
||||
|
||||
xce_queue_t q1 = { 0 };
|
||||
queue_t* q = NULL;
|
||||
|
||||
rc = xstring_table_init(32);
|
||||
TEST_ASSERT_TRUE(rc >= 0);
|
||||
|
||||
q = makeQueue(&q1);
|
||||
qmgr = makeInstance(&xkvmgr_type, ¶ms);
|
||||
TEST_ASSERT_TRUE(qmgr != NULL);
|
||||
|
||||
q = makeQueue(qmgr, &q1);
|
||||
|
||||
TEST_ASSERT_TRUE(q != NULL);
|
||||
|
||||
destroy(q);
|
||||
|
||||
destroy(qmgr);
|
||||
xstring_table_fini();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue