save works

This commit is contained in:
Rongsong Shen 2026-03-06 18:20:30 +08:00
parent 47fc32b02c
commit 43dc12a36c
19 changed files with 80 additions and 72 deletions

View file

@ -281,8 +281,6 @@ static void test_job_create(void)
&& (j2->job.submit->mintasks == 1) && (j2->job.submit->maxtasks == 5)
&& (j2->job.submit->user_group == NULL));
dereference(j2);
destroy(jobmgr);
job_obj_fini();

View file

@ -37,8 +37,6 @@ static void test_queue_create(void)
TEST_ASSERT_TRUE(q != NULL);
dereference(q);
destroy(qmgr);
xstring_table_fini();
}

View file

@ -52,7 +52,7 @@ void test_parse_section_fail(void)
"same[type] same[abcd] affinity[core(20)]";
char* errmsg = NULL;
int rc = 0;
xce_resreq_data_t data;
xce_resreq_data_t data = {0};
rc = parse_section(&data, (char*)resreq, &errmsg);
TEST_ASSERT_TRUE(rc < 0);

View file

@ -47,7 +47,6 @@ static void test_worker_create(void)
&& (w->host.attrs->cpufactor == attrs1.cpufactor)
&& (w->host.attrs->maxcpus == attrs1.maxcpus));
dereference(w);
destroy(workermgr);
xstring_table_fini();