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:
parent
076002f24d
commit
05882e28fb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user