git: 05882e28fbed - main - tests: Fix i386 and powerpc build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 27 May 2022 21:04:38 UTC
The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=05882e28fbedbe0bcd35a87a55ac3913a6445b6f commit 05882e28fbedbe0bcd35a87a55ac3913a6445b6f Author: Cy Schubert <cy@FreeBSD.org> AuthorDate: 2022-05-27 14:19:53 +0000 Commit: Cy Schubert <cy@FreeBSD.org> CommitDate: 2022-05-27 21:04:17 +0000 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 --- --- tests/sys/kern/unix_passfd_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sys/kern/unix_passfd_test.c b/tests/sys/kern/unix_passfd_test.c index da7052a7fcf4..91030d84872b 100644 --- a/tests/sys/kern/unix_passfd_test.c +++ b/tests/sys/kern/unix_passfd_test.c @@ -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);