tests: Fix i386 and powerpc build

Fix:

tests/sys/kern/unix_passfd_test.c:414:24: error: comparison of integers
of different signs: 'int' and 'unsigned int' [-Werror,-Wsign-compare]
        ATF_REQUIRE(getnfds() == nfds + MAXFDS);
        ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
powerpc.powerpc/tmp/usr/include/atf-c/macros.h:144:15: note: expanded
from macro 'ATF_REQUIRE'
        if (!(expression)) \
              ^~~~~~~~~~
1 error generated.
--- unix_passfd_test.o ---
This commit is contained in:
Cy Schubert 2022-05-27 07:19:53 -07:00
parent 076002f24d
commit 05882e28fb

View File

@ -411,7 +411,7 @@ ATF_TC_BODY(send_a_lot, tc)
ATF_REQUIRE(sendmsg(fd[0], &msghdr, 0) == 1);
nfds = getnfds();
ATF_REQUIRE(recvmsg(fd[1], &msghdr, 0) == 1);
ATF_REQUIRE(getnfds() == nfds + MAXFDS);
ATF_REQUIRE(getnfds() == (int)(nfds + MAXFDS));
/* Limit our process open files... */
ATF_REQUIRE(getrlimit(RLIMIT_NOFILE, &rlim) == 0);