mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 21:44:38 +08:00
socket unit test: check receiving FIN together with data works
This commit is contained in:
parent
dc882801bb
commit
fe828634ac
@ -185,7 +185,8 @@ static void test_sockets_allfunctions_basic_domain(int domain)
|
|||||||
|
|
||||||
while(tcpip_thread_poll_one());
|
while(tcpip_thread_poll_one());
|
||||||
|
|
||||||
ret = lwip_read(s3, buf, 3);
|
/* read one byte more than available to check handling FIN */
|
||||||
|
ret = lwip_read(s3, buf, 4);
|
||||||
fail_unless(ret == 3);
|
fail_unless(ret == 3);
|
||||||
|
|
||||||
ret = lwip_read(s3, buf, 1);
|
ret = lwip_read(s3, buf, 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user