nuttx-apps/examples/usrsocktest
chao an 3d0a49f33e examples/usrsocktest: read from the closed remote should return EOF
fix usrsock remote_disconnect fail:

nsh> usrsocktest
...
Testing group "remote_disconnect" =>
        [TEST ASSERT FAILED!]
                In function "receive":
                line 497: Assertion `(ssize_t)((ret)) == (ssize_t)((0))' failed.
                        got value: -1
                        should be: 0
        Group "remote_disconnect": [FAILED]
...

Reference:

RECV(2)

NAME
       recv, recvfrom, recvmsg - receive a message from a socket
...
RETURN VALUE
...
       When a stream socket peer has performed an orderly shutdown,
       the return value will be 0 (the traditional "end-of-file" return).

       Datagram sockets in various domains (e.g., the UNIX and Internet domains)
       permit zero-length datagrams.  When such a datagram is received, the return value is 0.

Signed-off-by: chao an <anchao@xiaomi.com>
2022-09-01 14:58:09 +08:00
..
defines.h apps: examples: usrsocktest: update licenses to Apache 2022-03-08 01:44:49 +08:00
Kconfig Application.mk and main.c files: Change builtin's entry point from main to xxx_main by macro expansion. This change make the entry point fully compliant with POSIX/ANSI standard. 2019-10-06 06:14:56 -06:00
Make.defs style: unify path to files in comment section 2022-03-09 10:37:33 +08:00
Makefile Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00
usrsocktest_basic_connect.c apps: testing: ostest: nxstyle fixes 2022-03-08 01:44:49 +08:00
usrsocktest_basic_daemon.c examples/usrsocktest: correct return value check of dup2() 2022-09-01 14:58:09 +08:00
usrsocktest_basic_getsockname.c apps: examples: usrsocktest: update licenses to Apache 2022-03-08 01:44:49 +08:00
usrsocktest_basic_getsockopt.c apps: examples: usrsocktest: update licenses to Apache 2022-03-08 01:44:49 +08:00
usrsocktest_basic_send.c apps: examples: usrsocktest: update licenses to Apache 2022-03-08 01:44:49 +08:00
usrsocktest_basic_setsockopt.c apps: examples: usrsocktest: update licenses to Apache 2022-03-08 01:44:49 +08:00
usrsocktest_block_recv.c examples/usrsocktest: correct the check region of remote address 2022-09-01 14:58:09 +08:00
usrsocktest_block_send.c apps: examples: usrsocktest: update licenses to Apache 2022-03-08 01:44:49 +08:00
usrsocktest_chardev.c apps: examples: usrsocktest: update licenses to Apache 2022-03-08 01:44:49 +08:00
usrsocktest_daemon.c examples/usrsocktest: read from the closed remote should return EOF 2022-09-01 14:58:09 +08:00
usrsocktest_main.c apps: examples: usrsocktest: update licenses to Apache 2022-03-08 01:44:49 +08:00
usrsocktest_multi_thread.c apps: examples: usrsocktest: update licenses to Apache 2022-03-08 01:44:49 +08:00
usrsocktest_noblock_connect.c apps: examples: usrsocktest: update licenses to Apache 2022-03-08 01:44:49 +08:00
usrsocktest_noblock_recv.c examples/usrsocktest: correct the check region of remote address 2022-09-01 14:58:09 +08:00
usrsocktest_noblock_send.c apps: examples: usrsocktest: update licenses to Apache 2022-03-08 01:44:49 +08:00
usrsocktest_nodaemon.c apps: examples: usrsocktest: update licenses to Apache 2022-03-08 01:44:49 +08:00
usrsocktest_poll.c apps: testing: ostest: nxstyle fixes 2022-03-08 01:44:49 +08:00
usrsocktest_remote_disconnect.c apps: testing: ostest: nxstyle fixes 2022-03-08 01:44:49 +08:00
usrsocktest_wake_with_signal.c examples/usrsocktest: fix build break 2022-09-01 14:58:09 +08:00