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();
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: t_inttypes.c,v 1.2 2010/07/18 12:16:19 jmmv Exp $ */
|
||||
/* $NetBSD: t_inttypes.c,v 1.3 2013/10/19 17:44:37 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
@@ -37,34 +37,34 @@ ATF_TC_BODY(int_fmtio, tc)
|
||||
{
|
||||
char buf[64];
|
||||
|
||||
int8_t i8;
|
||||
int16_t i16;
|
||||
int32_t i32;
|
||||
int64_t i64;
|
||||
int_least8_t il8;
|
||||
int_least16_t il16;
|
||||
int_least32_t il32;
|
||||
int_least64_t il64;
|
||||
int_fast8_t if8;
|
||||
int_fast16_t if16;
|
||||
int_fast32_t if32;
|
||||
int_fast64_t if64;
|
||||
intmax_t im;
|
||||
intptr_t ip;
|
||||
uint8_t ui8;
|
||||
uint16_t ui16;
|
||||
uint32_t ui32;
|
||||
uint64_t ui64;
|
||||
uint_least8_t uil8;
|
||||
uint_least16_t uil16;
|
||||
uint_least32_t uil32;
|
||||
uint_least64_t uil64;
|
||||
uint_fast8_t uif8;
|
||||
uint_fast16_t uif16;
|
||||
uint_fast32_t uif32;
|
||||
uint_fast64_t uif64;
|
||||
uintmax_t uim;
|
||||
uintptr_t uip;
|
||||
int8_t i8 = 0;
|
||||
int16_t i16 = 0;
|
||||
int32_t i32 = 0;
|
||||
int64_t i64 = 0;
|
||||
int_least8_t il8 = 0;
|
||||
int_least16_t il16 = 0;
|
||||
int_least32_t il32 = 0;
|
||||
int_least64_t il64 = 0;
|
||||
int_fast8_t if8 = 0;
|
||||
int_fast16_t if16 = 0;
|
||||
int_fast32_t if32 = 0;
|
||||
int_fast64_t if64 = 0;
|
||||
intmax_t im = 0;
|
||||
intptr_t ip = 0;
|
||||
uint8_t ui8 = 0;
|
||||
uint16_t ui16 = 0;
|
||||
uint32_t ui32 = 0;
|
||||
uint64_t ui64 = 0;
|
||||
uint_least8_t uil8 = 0;
|
||||
uint_least16_t uil16 = 0;
|
||||
uint_least32_t uil32 = 0;
|
||||
uint_least64_t uil64 = 0;
|
||||
uint_fast8_t uif8 = 0;
|
||||
uint_fast16_t uif16 = 0;
|
||||
uint_fast32_t uif32 = 0;
|
||||
uint_fast64_t uif64 = 0;
|
||||
uintmax_t uim = 0;
|
||||
uintptr_t uip = 0;
|
||||
|
||||
#define PRINT(fmt, var) \
|
||||
snprintf(buf, sizeof(buf), "%" fmt, var)
|
||||
|
||||
Reference in New Issue
Block a user