Re:_git:_8d3d9ca8bd3d_-_main_-_test s/netinet:_add_UDP_socket__I/O_tests

From: Baptiste Daroussin <bapt_at_nours.eu>
Date: Sat, 23 Mar 2024 08:58:02 UTC
Le 23 mars 2024 06:45:39 GMT+01:00, Gleb Smirnoff <glebius@FreeBSD.org> a écrit :
>The branch main has been updated by glebius:
>
>URL: https://cgit.FreeBSD.org/src/commit/?id=8d3d9ca8bd3db284f6ae671f1e816ba2822f0988
>
>commit 8d3d9ca8bd3db284f6ae671f1e816ba2822f0988
>Author:     Gleb Smirnoff <glebius@FreeBSD.org>
>AuthorDate: 2024-03-23 05:44:16 +0000
>Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
>CommitDate: 2024-03-23 05:44:16 +0000
>
>    tests/netinet: add UDP socket I/O tests
>    
>    Start a file that would collect tests for I/O functionality of a UDP
>    socket, targeted on how a socket interacts with userland rather than with
>    wire side of the protocol.
>    
>    First version tests that MSG_TRUNC and MSG_PEEK are working correctly.
>---

This breaks 32bits

/home/bapt/worktrees/main/tests/sys/netinet/udp_io.c:121:45: error: comparison of integers of different signs: 'ssize_t' (aka 'int') and 'u_int' (aka 'unsigned int') [-Werror,-Wsign-compare]                        121 |                 ATF_REQUIRE(recvmsg(s[0], &msg, MSG_PEEK) == n);                                        |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~                                   /home/bapt/obj/home/bapt/worktrees/main/i386.i386/tmp/usr/include/atf-c/macros.h:144:15: note: expanded from macro 'ATF_REQUIRE'                                 144 |         if (!(expression)) \                       |               ^~~~~~~~~~


Bapt