zephyr/subsys/net/lib/websocket
Robert Lubos 162c0f64c2 tests: net: websocket: Fix test execution on 64-bit platforms
Instead of passing the test parameters to the websocket function, by
casting the pointer to integer (which may not work on 64-bit platform
due to int/pointer size mismatch), let the test allocate a file
descriptor, and initialize it with test context. The tested functions
expect a file descriptor as an argument anyway, so it's a more intuitive
approach.

The conditional test code within WS implementation can retrieve the test
context by using FD APIs to obtain the object represented by the FD.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2023-04-05 15:01:50 +02:00
..
CMakeLists.txt
Kconfig net: websocket: Make sure the mbedtls_sha1 function is build in 2023-02-24 18:12:14 +01:00
websocket.c tests: net: websocket: Fix test execution on 64-bit platforms 2023-04-05 15:01:50 +02:00
websocket_internal.h