[PATCH 1/2] tests/msg_name: skip another test on Musl

Alyssa Ross hi at alyssa.is
Tue May 4 17:57:41 UTC 2021


The second test here doesn't work on Musl either, for exactly the same
reason as the first.
---
 tests/msg_name.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/msg_name.c b/tests/msg_name.c
index 74252958..c5f9f322 100644
--- a/tests/msg_name.c
+++ b/tests/msg_name.c
@@ -104,17 +104,17 @@ test_msg_name(const int send_fd, const int recv_fd)
 
 	/*
 	 * Sadly, musl recvmsg wrapper blindly dereferences 2nd argument,
-	 * so limit this test to glibc that doesn't.
+	 * so limit these tests to glibc that doesn't.
 	 */
 #ifdef __GLIBC__
 	rc = send_recv(send_fd, -1, msg + 1, 0);
 	printf("recvmsg(-1, %p, 0) = %d %s (%m)\n",
 	       msg + 1, rc, errno2name());
-#endif
 
 	rc = send_recv(send_fd, -1, 0, 0);
 	printf("recvmsg(-1, NULL, 0) = %d %s (%m)\n",
 	       rc, errno2name());
+#endif
 }
 
 int
-- 
2.31.0



More information about the Strace-devel mailing list