selftests: net: sk_connect_zero_addr: fix mislabeled connect diagnostic
Subsystems (3)
PATCH 1/1 selftests: net: sk_connect_zero_addr: fix mislabeled connect diagnostic
The connect() failure branch reports "bind fd2", copy-pasted from the bind() block above. Name the failing call.
Signed-off-by Omokefe Emmanuel Onanaroghene <[email protected]>
--- tools/testing/selftests/net/sk_connect_zero_addr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/net/sk_connect_zero_addr.c +1 -1
@@ -46,7 +46,7 @@ int main(void) }e if (connect(fd2, (struct sockaddr *)&bind_addr, sizeof(bind_addr))) { -error (1 , errno,"bind fd2" ); +error (1 , errno,"connect fd2" ); goto out_err2; }
Signature · 1 line
2.43.0
Hi Omokefe,
Quoted 13 lines · Omokefe Emmanuel Onanaroghene
The
connect()failure branch reports "bind fd2", copy-pasted from thebind()block above. Name the failing call.Signed-off-by Omokefe Emmanuel Onanaroghene <[email protected]>--- tools/testing/selftests/net/sk_connect_zero_addr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/testing/selftests/net/sk_connect_zero_addr.c +0
-0
tools/testing/selftests/net/sk_connect_zero_addr.c int main(void) · line 47
Quoted 2 lines
tools/testing/selftests/net/sk_connect_zero_addr.c +0
-0@@ -46,7 +46,7 @@ int main(void) } e
An "e" here?
Thanks
Hangbin
Quoted 9 lines
tools/testing/selftests/net/sk_connect_zero_addr.c +1
-1if (connect (fd2, (struct sockaddr *)&bind_addr,sizeof (bind_addr))) { -error (1 , errno,"bind fd2" ); +error (1 , errno,"connect fd2" ); goto out_err2; }Signature · 1 line
2.43.0
Quoted 1 line · On Mon, 23 Nov 2026 13:47:54 +0800 Hangbin Liu wrote:
An "e" here?
Thanks for catching it. Fixed in v2.
https://lore.kernel.org/all/[email protected]/
Omokefe