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:
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: t_backtrace.c,v 1.8 2013/07/05 09:55:39 joerg Exp $ */
|
||||
/* $NetBSD: t_backtrace.c,v 1.10 2013/08/16 11:57:15 martin Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2012 The NetBSD Foundation, Inc.
|
||||
@@ -29,7 +29,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#include <sys/cdefs.h>
|
||||
__RCSID("$NetBSD: t_backtrace.c,v 1.8 2013/07/05 09:55:39 joerg Exp $");
|
||||
__RCSID("$NetBSD: t_backtrace.c,v 1.10 2013/08/16 11:57:15 martin Exp $");
|
||||
|
||||
#include <atf-c.h>
|
||||
#include <atf-c/config.h>
|
||||
@@ -42,9 +42,14 @@ __RCSID("$NetBSD: t_backtrace.c,v 1.8 2013/07/05 09:55:39 joerg Exp $");
|
||||
#define __arraycount(a) (sizeof(a) / sizeof(a[0]))
|
||||
#endif
|
||||
|
||||
void myfunc3(size_t ncalls);
|
||||
void myfunc2(size_t ncalls);
|
||||
void myfunc1(size_t origcalls, volatile size_t ncalls);
|
||||
void myfunc(size_t ncalls);
|
||||
|
||||
volatile int prevent_inline;
|
||||
|
||||
static void
|
||||
void
|
||||
myfunc3(size_t ncalls)
|
||||
{
|
||||
static const char *top[] = { "myfunc", "atfu_backtrace_fmt_basic_body",
|
||||
@@ -90,7 +95,7 @@ myfunc3(size_t ncalls)
|
||||
vfork();
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
myfunc2(size_t ncalls)
|
||||
{
|
||||
myfunc3(ncalls);
|
||||
@@ -99,7 +104,7 @@ myfunc2(size_t ncalls)
|
||||
vfork();
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
myfunc1(size_t origcalls, volatile size_t ncalls)
|
||||
{
|
||||
if (ncalls > 1)
|
||||
@@ -111,7 +116,7 @@ myfunc1(size_t origcalls, volatile size_t ncalls)
|
||||
vfork();
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
myfunc(size_t ncalls)
|
||||
{
|
||||
myfunc1(ncalls, ncalls);
|
||||
@@ -128,13 +133,10 @@ ATF_TC_HEAD(backtrace_fmt_basic, tc)
|
||||
|
||||
ATF_TC_BODY(backtrace_fmt_basic, tc)
|
||||
{
|
||||
const char *arch = atf_config_get("atf_arch");
|
||||
|
||||
if (strcmp(arch, "x86_64") != 0)
|
||||
atf_tc_skip("PR toolchain/46490: libexecinfo only"
|
||||
" works on amd64 currently");
|
||||
|
||||
myfunc(12);
|
||||
|
||||
if (prevent_inline)
|
||||
vfork();
|
||||
}
|
||||
|
||||
ATF_TP_ADD_TCS(tp)
|
||||
|
||||
Reference in New Issue
Block a user