Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC)
- Fix for possible unset uid/gid in toproto
- Fix for default mtree style
- Update libelf
- Importing libexecinfo
- Resynchronize GCC, mpc, gmp, mpfr
- build.sh: Replace params with show-params.
This has been done as the make target has been renamed in the same
way, while a new target named params has been added. This new
target generates a file containing all the parameters, instead of
printing it on the console.
- Update test48 with new etc/services (Fix by Ben Gras <ben@minix3.org)
get getservbyport() out of the inner loop
Change-Id: Ie6ad5226fa2621ff9f0dee8782ea48f9443d2091
This commit is contained in:
@@ -6,8 +6,7 @@ NOMAN= # defined
|
||||
|
||||
TESTSDIR= ${TESTSBASE}/include/sys
|
||||
|
||||
#LSC: Unsupported on Minix t_bitops
|
||||
TESTS_C= t_bootblock t_cdefs t_tree t_types
|
||||
TESTS_C= t_bitops t_bootblock t_cdefs t_tree t_types
|
||||
|
||||
LDADD.t_bitops+= -lm
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: t_cdefs.c,v 1.2 2012/03/23 23:12:28 matt Exp $ */
|
||||
/* $NetBSD: t_cdefs.c,v 1.3 2013/09/05 09:01:27 gsutre Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2012 The NetBSD Foundation, Inc.
|
||||
@@ -32,7 +32,7 @@
|
||||
#include <sys/cdefs.h>
|
||||
__COPYRIGHT("@(#) Copyright (c) 2008\
|
||||
The NetBSD Foundation, inc. All rights reserved.");
|
||||
__RCSID("$NetBSD: t_cdefs.c,v 1.2 2012/03/23 23:12:28 matt Exp $");
|
||||
__RCSID("$NetBSD: t_cdefs.c,v 1.3 2013/09/05 09:01:27 gsutre Exp $");
|
||||
|
||||
#include <atf-c.h>
|
||||
#include <sys/types.h>
|
||||
@@ -206,8 +206,8 @@ ATF_TC_BODY(stypefit, tc)
|
||||
CHECK(signed long long, -1, 0);
|
||||
CHECK(signed long long, 1, 0);
|
||||
CHECK(signed long long, 0x7fffffffffffffffLL, 0);
|
||||
CHECK(signed long long, 0x8000000000000000LL, 0);
|
||||
CHECK(signed long long, 0xffffffffffffffffLL, 0);
|
||||
CHECK(signed long long, 0x8000000000000000LL, 1);
|
||||
CHECK(signed long long, 0xffffffffffffffffLL, 1);
|
||||
|
||||
#undef CHECK
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: t_socket.c,v 1.1 2011/07/07 05:50:27 jruoho Exp $ */
|
||||
/* $NetBSD: t_socket.c,v 1.3 2013/10/19 17:45:00 christos Exp $ */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/mount.h>
|
||||
@@ -83,7 +83,7 @@ ATF_TC_BODY(cmsg_sendfd, tc)
|
||||
struct cmsghdr *cmp;
|
||||
struct msghdr msg;
|
||||
struct sockaddr_un sun;
|
||||
struct lwp *l1, *l2;
|
||||
struct lwp *l1;
|
||||
struct iovec iov;
|
||||
socklen_t sl;
|
||||
int s1, s2, sgot;
|
||||
@@ -109,7 +109,7 @@ ATF_TC_BODY(cmsg_sendfd, tc)
|
||||
|
||||
/* create second process for test */
|
||||
RZ(rump_pub_lwproc_rfork(RUMP_RFCFDG));
|
||||
l2 = rump_pub_lwproc_curlwp();
|
||||
(void)rump_pub_lwproc_curlwp();
|
||||
|
||||
/* connect to unix domain socket */
|
||||
memset(&sun, 0, sizeof(sun));
|
||||
@@ -179,10 +179,27 @@ ATF_TC_BODY(cmsg_sendfd, tc)
|
||||
atf_tc_fail("expected \"%s\", got \"%s\"", MAGICSTRING, buf);
|
||||
}
|
||||
|
||||
ATF_TC(sock_cloexec);
|
||||
ATF_TC_HEAD(sock_cloexec, tc)
|
||||
{
|
||||
atf_tc_set_md_var(tc, "descr", "SOCK_CLOEXEC kernel invariant failure");
|
||||
}
|
||||
|
||||
ATF_TC_BODY(sock_cloexec, tc)
|
||||
{
|
||||
|
||||
rump_init();
|
||||
rump_pub_lwproc_rfork(RUMP_RFFDG);
|
||||
if (rump_sys_socket(-1, SOCK_CLOEXEC, 0) != -1)
|
||||
atf_tc_fail("invalid socket parameters unexpectedly worked");
|
||||
rump_pub_lwproc_releaselwp();
|
||||
}
|
||||
|
||||
ATF_TP_ADD_TCS(tp)
|
||||
{
|
||||
ATF_TP_ADD_TC(tp, cmsg_sendfd);
|
||||
ATF_TP_ADD_TC(tp, cmsg_sendfd_bounds);
|
||||
ATF_TP_ADD_TC(tp, sock_cloexec);
|
||||
|
||||
return atf_no_error();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user