Add log on stdout when an error happens in the TCP and UDP UT.
Fix the following case, where the UDP UT would select twice the same port and fail binding later:
[ RUN ] Nominal.BasicReceiveThread
Setup to send and receive udp to 127.0.0.1:60296
UDP socket open error: Address already in use
Port1: 60296
Port2: 60296
/home/fprime/Drv/Udp/test/ut/UdpTester.cpp:77: Failure
Expected equality of these values:
status2
Which is: -9
Drv::SOCK_SUCCESS
Which is: 0
[ FAILED ] Nominal.BasicReceiveThread (10 ms)
[ RUN ] Reconnect.MultiMessaging
Setup to send and receive udp to 127.0.0.1:6335
UDP socket open error: Address already in use
Port1: 6335
Port2: 6335
/home/fprime/Drv/Udp/test/ut/UdpTester.cpp:77: Failure
Expected equality of these values:
status2
Which is: -9
Drv::SOCK_SUCCESS
Which is: 0
[ FAILED ] Reconnect.MultiMessaging (0 ms)
Rationale
TCP and UDP UT are often failing, and this will give more understanding of the reason of those failures.
Change Description
Rationale
TCP and UDP UT are often failing, and this will give more understanding of the reason of those failures.