It is ok for the log message generated by address/get_if_addrs6_list_no_internal to be either:
"connect() failed", or
"unable to create socket", or
"Address that we determined via UDP socket magic is unsuitable for public comms."
But we don't currently allow the third option.
address/get_if_addrs6_list_no_internal: [forking] FAIL src/test/test_address.c:850: expected log to contain "connect() failed" or "unable to create socket" Captured logs: 1. err: "Address that we determined via UDP socket magic is unsuitable for public comms.\n" [get_if_addrs6_list_no_internal FAILED]
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items 0
Show closed items
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Linked items 0
Link issues together to show that they're related.
Learn more.
I have created a patch for this. Tell me what you think about this.
...
Thanks for this patch, neel!
Here's how I would make the patch better:
I would keep expect_log_msg_containing_either as a 2-argument version, and add another macro expect_log_msg_containing_either3 for the 3-argument version. That way, we can use whichever one we need in future tests.
I just read get_interface_address6_via_udp_socket_hack, and there are actually 4 things that can go wrong. So let's cover them all - the extra one is:
"getsockname() to determine interface failed"
(I guess that means we need a 4-argument macro expect_log_msg_containing_either4 as well.)
Can you make these changes, and submit another patch?