From 2d4f1045d1c7140e22cf096ce4d1ad51e430b5b8 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Tue, 6 Oct 2020 21:20:43 +0100 Subject: [PATCH] struct_json: adapt api test for 32-bit int on windows --- .../api-tests/api-test-lws_struct-json/test2.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/minimal-examples/api-tests/api-test-lws_struct-json/test2.c b/minimal-examples/api-tests/api-test-lws_struct-json/test2.c index 07f8178b3..128d01062 100644 --- a/minimal-examples/api-tests/api-test-lws_struct-json/test2.c +++ b/minimal-examples/api-tests/api-test-lws_struct-json/test2.c @@ -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 ; /*