Skip to content

Commit 71db612

Browse files
Remove udpsocket_sendto_invalid
It tested parameter checks in the now obsoleted string-based API.
1 parent 5ece00c commit 71db612

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

TESTS/netsocket/README.md

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -750,34 +750,6 @@ Test cases for UDPSocket class
750750

751751
**Description:** Run `SOCKET_BIND_UNOPENED` for UDPSocket.
752752

753-
### UDPSOCKET_SENDTO_INVALID
754-
755-
**Description:**
756-
757-
Call `UDPSocket::sendto()` with invalid parameters.
758-
759-
**Preconditions:**
760-
761-
1. Network interface and stack are initialized.
762-
1. Network connection is up.
763-
1. UDPSocket is open.
764-
765-
**Test steps:**
766-
767-
1. Call `UDPSocket:sendto( NULL, 9, NULL, 0);`.
768-
1. Call `UDPSocket:sendto( "", 9, NULL, 0);`.
769-
1. Call `UDPSocket:sendto( "", 0, NULL, 0);`.
770-
1. Call `UDPSocket:sendto("echo.mbedcloudtesting.com", 9,NULL, 0);`.
771-
1. Call `UDPSocket:sendto("echo.mbedcloudtesting.com", 9, "hello", 5);`.
772-
1. Destroy the socket.
773-
774-
**Expected result:**
775-
776-
All `sendto()` calls return an error code except:
777-
778-
- Step 4 returns 0.
779-
- Step 5 returns 5.
780-
781753
### UDPSOCKET_SENDTO_REPEAT
782754

783755
**Description:**

TESTS/netsocket/udp/main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ Case cases[] = {
191191
Case("UDPSOCKET_BIND_ADDRESS", UDPSOCKET_BIND_ADDRESS),
192192
Case("UDPSOCKET_BIND_WRONG_TYPE", UDPSOCKET_BIND_WRONG_TYPE),
193193
Case("UDPSOCKET_BIND_UNOPENED", UDPSOCKET_BIND_UNOPENED),
194-
Case("UDPSOCKET_SENDTO_INVALID", UDPSOCKET_SENDTO_INVALID),
195194
Case("UDPSOCKET_ECHOTEST_NONBLOCK", UDPSOCKET_ECHOTEST_NONBLOCK),
196195
Case("UDPSOCKET_ECHOTEST_BURST_NONBLOCK", UDPSOCKET_ECHOTEST_BURST_NONBLOCK),
197196
Case("UDPSOCKET_SENDTO_REPEAT", UDPSOCKET_SENDTO_REPEAT),

0 commit comments

Comments
 (0)