save works

This commit is contained in:
Rongsong Shen 2026-03-03 16:49:26 +08:00
parent f4b1ba4cd7
commit acfbec875b
51 changed files with 622 additions and 1175 deletions

View file

@ -1,15 +1,15 @@
#include <rtti.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <rtti.h>
#include <unity/unity.h>
#include "kvmgr.h"
#include "qobj.h"
#include "utils.h"
#include "xstring.h"
#include "kvmgr.h"
static void test_queue_create(void)
{
@ -17,10 +17,14 @@ static void test_queue_create(void)
kvmgr_params_t params = { .key_type = KVMGR_KEY_STRING,
.nslots = 32,
.delta = 32,
.datakiller = destroy };
.datakiller = dereference };
var qmgr;
xce_queue_t q1 = { 0 };
xce_queue_t q1 = { .queue = "xce",
.resreq = "type == any",
.pre_exec = NULL,
.post_exec = NULL,
.autopscaler = NULL };
queue_t* q = NULL;
rc = xstring_table_init(32);
@ -33,7 +37,7 @@ static void test_queue_create(void)
TEST_ASSERT_TRUE(q != NULL);
destroy(q);
dereference(q);
destroy(qmgr);
xstring_table_fini();