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

Dmitry V. Levin ldv at altlinux.org
Wed May 5 16:56:35 UTC 2021


On Tue, May 04, 2021 at 05:57:41PM +0000, Alyssa Ross wrote:
> 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

I wonder why this issue didn't arise earlier, perhaps it depends on the
musl version.

Applied, thanks.


-- 
ldv


More information about the Strace-devel mailing list