Skip to content
Commit 162c0f64 authored by Robert Lubos's avatar Robert Lubos Committed by Carles Cufí
Browse files

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: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent 196261d4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment