[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [wakaama-dev] test case failed , ask for help, thanks very much.
|
Hi Zeng,
I investigated your issue and found a bug in the JSON parsing code. I created a PR with your unit tests and the fix here: https://github.com/eclipse/wakaama/pull/389
Everyone feel free to review and comment.
Thanks,
Greg
From: <wakaama-dev-bounces@xxxxxxxxxxx> on behalf of "Zeng, Liang 1. (NSB - CN/Hangzhou)" <liang.1.zeng@xxxxxxxxxxxxxxx>
Reply-To: Wakaama developer discussions <wakaama-dev@xxxxxxxxxxx>
Date: Wednesday 22 August 2018 at 11:14
To: "wakaama-dev@xxxxxxxxxxx" <wakaama-dev@xxxxxxxxxxx>
Subject: [wakaama-dev] test case failed , ask for help, thanks very much.
Resent-From: <g.lemercier@xxxxxxxxxxx>
Resent-Date: Wednesday 22 August 2018 at 11:14
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