🧪 test(exdata): add test case

This commit is contained in:
yangwei
2024-09-14 17:41:23 +08:00
parent 340c8a1054
commit 19aeb194f3
6 changed files with 149 additions and 1636 deletions

View File

@@ -136,7 +136,7 @@ void exdata_runtime_free(struct exdata_runtime *h)
int exdata_set(struct exdata_runtime *h, int idx, void *ex_ptr)
{
if(h==NULL || h->schema == NULL|| h->exdata_array == NULL)return -1;
if(h==NULL || h->schema == NULL|| h->exdata_array == NULL || idx<0)return -1;
unsigned int len=utarray_len(h->schema->exdata_meta_array);
if(len < (unsigned int)idx)return -1;
if((h->exdata_array+idx)->state == EXIT)return -1;