Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[wakaama-dev] test case failed , ask for help, thanks very much.

Hi,
 
I try to add two test case as below, they have little difference(marked as yellow), one passed, and one failed, Does anybody know why ? 
I think it’s the basic function of LWM2M_CONTENT_JSON format.  
 
static void test_11(void)      failed(core dumped)
{   //{"bn":"/5/0/1","e":[{"n":"1","sv":"http"}]}
    const char * buffer = "{\"bn\":\"/5/0/1\",\"e\":[{\"n\":\"/1\",\"sv\":\"http\"}]}";
 
    test_raw(NULL, (uint8_t *)buffer, strlen(buffer), LWM2M_CONTENT_JSON, "11");
    printf("\n test_11 ok \n");
 
}
 
 
static void test_12(void)  passed
{   //{"bn":"/5/0/1","e":[{"n":"1","sv":"http"}]}
    const char * buffer = "{\"bn\":\"/5/0\",\"e\":[{\"n\":\"/1\",\"sv\":\"http\"}]}";
 
    test_raw(NULL, (uint8_t *)buffer, strlen(buffer), LWM2M_CONTENT_JSON, "11");
    printf("\n test_11 ok \n");
 
}
 
BRs,
Zeng Liang
 
 
 

Back to the top