Changeset b9be9b0 in mainline for uspace/srv/net/udp/test/assoc.c
- Timestamp:
- 2022-03-04T09:11:58Z (3 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- af259da
- Parents:
- 917324b
- git-author:
- Jiri Svoboda <jiri@…> (2022-03-03 18:11:14)
- git-committer:
- Jiri Svoboda <jiri@…> (2022-03-04 09:11:58)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/udp/test/assoc.c
r917324b rb9be9b0 250 250 } 251 251 252 /** Sending message with destination set in association and NULL destination253 * argument252 /** Sending message with destination set in association and inet_addr_any / 253 * inet_port_any destination argument 254 254 */ 255 PCUT_TEST(send_assoc_null_dest) 256 { 257 udp_assoc_t *assoc; 258 inet_ep2_t epp; 255 PCUT_TEST(send_assoc_any_dest) 256 { 257 udp_assoc_t *assoc; 258 inet_ep2_t epp; 259 inet_ep_t ep; 259 260 errno_t rc; 260 261 udp_msg_t *msg; … … 272 273 epp.local.port = 1; 273 274 275 inet_ep_init(&ep); 276 274 277 assoc = udp_assoc_new(&epp, &test_assoc_cb, NULL); 275 278 PCUT_ASSERT_NOT_NULL(assoc); … … 281 284 sent_msg = NULL; 282 285 283 rc = udp_assoc_send(assoc, NULL, msg);286 rc = udp_assoc_send(assoc, &ep, msg); 284 287 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 285 288 PCUT_ASSERT_EQUALS(msg, sent_msg); … … 311 314 312 315 inet_ep2_init(&epp); 313 inet_addr(&epp.remote.addr, 127, 0, 0, 1);314 epp.remote.port = 42;315 316 inet_addr(&epp.local.addr, 127, 0, 0, 1); 316 317 epp.local.port = 1;
Note:
See TracChangeset
for help on using the changeset viewer.