save works
This commit is contained in:
parent
f4b1ba4cd7
commit
acfbec875b
51 changed files with 622 additions and 1175 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ static void test_worker_create(void)
|
|||
kvmgr_params_t params = { .key_type = KVMGR_KEY_STRING,
|
||||
.nslots = 32,
|
||||
.delta = 32,
|
||||
.datakiller = destroy };
|
||||
.datakiller = dereference };
|
||||
var workermgr;
|
||||
hostattrs_t attrs1 = { .hosttype = "LINUX64",
|
||||
.hostmodel = "linux-gnu-x86_64",
|
||||
|
|
@ -48,7 +48,6 @@ static void test_worker_create(void)
|
|||
&& (w->host.attrs->maxcpus == attrs1.maxcpus));
|
||||
|
||||
dereference(w);
|
||||
|
||||
destroy(workermgr);
|
||||
|
||||
xstring_table_fini();
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
#include <string.h>
|
||||
#include <unity/unity.h>
|
||||
|
||||
#include "objmgr.h"
|
||||
#include "utils.h"
|
||||
#include "xstring.h"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue