mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
struct_json: adapt api test for 32-bit int on windows
This commit is contained in:
parent
309b08d830
commit
5f7da4a530
1 changed files with 8 additions and 0 deletions
|
@ -38,7 +38,11 @@ static const char * const test2_json =
|
|||
"},"
|
||||
"\"frequency\":" "11,"
|
||||
"\"arg1\":" "\"val2\","
|
||||
#if defined(_WIN32)
|
||||
"\"arg2\":" "2147483647,"
|
||||
#else
|
||||
"\"arg2\":" "1420887242594,"
|
||||
#endif
|
||||
"\"priority\":" "3,"
|
||||
"\"ssid\":" "\"\\\"nw1\\\"\""
|
||||
"}"
|
||||
|
@ -51,7 +55,11 @@ static const char * const test2_json_expected =
|
|||
"\"frequency\":0,\"arg2\":0,\"priority\":1},"
|
||||
"{\"creds\":{\"key1\":\"\\u0022xxxxxxxxxxxxx\\u0022\"},"
|
||||
"\"arg1\":\"val2\",\"ssid\":\"\\u0022nw1\\u0022\","
|
||||
#if defined(_WIN32)
|
||||
"\"frequency\":11,\"arg2\":2147483647,\"priority\":3}]}"
|
||||
#else
|
||||
"\"frequency\":11,\"arg2\":1420887242594,\"priority\":3}]}"
|
||||
#endif
|
||||
;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue