-/* $NetBSD: t_paths.c,v 1.13 2014/02/09 21:26:07 jmmv Exp $ */
+/* $NetBSD: t_paths.c,v 1.14 2014/11/04 00:20:19 justin Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_paths.c,v 1.13 2014/02/09 21:26:07 jmmv Exp $");
+__RCSID("$NetBSD: t_paths.c,v 1.14 2014/11/04 00:20:19 justin Exp $");
#include <sys/param.h>
#include <sys/stat.h>
#include <unistd.h>
#include <atf-c.h>
-#include <atf-c/config.h>
#define PATH_DEV __BIT(0) /* A device node */
#define PATH_DIR __BIT(1) /* A directory */
-/* $NetBSD: t_floatunditf.c,v 1.5 2014/02/02 08:16:22 martin Exp $ */
+/* $NetBSD: t_floatunditf.c,v 1.6 2014/11/04 00:20:19 justin Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
*/
#include <atf-c.h>
-#include <atf-c/config.h>
#include <inttypes.h>
#include <math.h>
-/* $NetBSD: t_fpsetmask.c,v 1.13 2014/02/09 21:26:07 jmmv Exp $ */
+/* $NetBSD: t_fpsetmask.c,v 1.14 2014/11/04 00:20:19 justin Exp $ */
/*-
* Copyright (c) 1995 The NetBSD Foundation, Inc.
#include <sys/param.h>
#include <atf-c.h>
-#include <atf-c/config.h>
#include <stdio.h>
#include <signal.h>
-/* $NetBSD: t_isnan.c,v 1.4 2014/02/09 21:26:07 jmmv Exp $ */
+/* $NetBSD: t_isnan.c,v 1.5 2014/11/04 00:20:19 justin Exp $ */
/*
* This file is in the Public Domain.
#include <sys/param.h>
#include <atf-c.h>
-#include <atf-c/config.h>
#include <math.h>
#include <string.h>
-/* $NetBSD: t_siginfo.c,v 1.23 2014/02/09 21:26:07 jmmv Exp $ */
+/* $NetBSD: t_siginfo.c,v 1.24 2014/11/04 00:20:19 justin Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
*/
#include <atf-c.h>
-#include <atf-c/config.h>
#if defined(__NetBSD__)
#include <sys/inttypes.h>
-/* $NetBSD: t_strtod.c,v 1.31 2012/09/26 07:24:38 jruoho Exp $ */
+/* $NetBSD: t_strtod.c,v 1.32 2014/11/04 00:20:19 justin Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
/* Public domain, Otto Moerbeek <otto@drijf.net>, 2006. */
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_strtod.c,v 1.31 2012/09/26 07:24:38 jruoho Exp $");
+__RCSID("$NetBSD: t_strtod.c,v 1.32 2014/11/04 00:20:19 justin Exp $");
#include <errno.h>
#include <math.h>
#include <string.h>
#include <atf-c.h>
-#include <atf-c/config.h>
#if defined(__i386__) || defined(__amd64__) || defined(__sparc__)
#include <fenv.h>
-/* $NetBSD: t_sigaction.c,v 1.2 2012/11/07 16:51:16 pgoyette Exp $ */
+/* $NetBSD: t_sigaction.c,v 1.3 2014/11/04 00:20:19 justin Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
#include <sys/cdefs.h>
__COPYRIGHT("@(#) Copyright (c) 2010\
The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_sigaction.c,v 1.2 2012/11/07 16:51:16 pgoyette Exp $");
+__RCSID("$NetBSD: t_sigaction.c,v 1.3 2014/11/04 00:20:19 justin Exp $");
#include <sys/wait.h>
#include <unistd.h>
#include <atf-c.h>
-#include <atf-c/config.h>
#ifdef __NetBSD__
#include "../../../h_macros.h"
errno = 0;
t = mktime(&tms);
-#if defined(__FreeBSD__)
- /* Open Group says "and may set errno to indicate the error" */
- ATF_REQUIRE(t == (time_t)-1);
-#else
ATF_REQUIRE_ERRNO(0, t != (time_t)-1);
-#endif
}
ATF_TC(timegm_epoch);
-/* $NetBSD: t_backtrace.c,v 1.15 2014/05/01 03:46:11 joerg Exp $ */
+/* $NetBSD: t_backtrace.c,v 1.16 2014/11/04 00:20:19 justin Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_backtrace.c,v 1.15 2014/05/01 03:46:11 joerg Exp $");
+__RCSID("$NetBSD: t_backtrace.c,v 1.16 2014/11/04 00:20:19 justin Exp $");
#include <atf-c.h>
-#include <atf-c/config.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
-/* $NetBSD: t_ldexp.c,v 1.13 2014/03/12 21:40:07 martin Exp $ */
+/* $NetBSD: t_ldexp.c,v 1.14 2014/11/04 00:20:19 justin Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_ldexp.c,v 1.13 2014/03/12 21:40:07 martin Exp $");
+__RCSID("$NetBSD: t_ldexp.c,v 1.14 2014/11/04 00:20:19 justin Exp $");
#include <sys/param.h>
#include <atf-c.h>
-#include <atf-c/config.h>
#include <math.h>
#include <limits.h>
-/* $NetBSD: t_log.c,v 1.11 2014/03/03 10:39:08 martin Exp $ */
+/* $NetBSD: t_log.c,v 1.12 2014/11/04 00:20:19 justin Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_log.c,v 1.11 2014/03/03 10:39:08 martin Exp $");
+__RCSID("$NetBSD: t_log.c,v 1.12 2014/11/04 00:20:19 justin Exp $");
#include <atf-c.h>
-#include <atf-c/config.h>
#include <math.h>
#include <stdio.h>
-/* $NetBSD: t_precision.c,v 1.1 2013/11/11 11:10:45 joerg Exp $ */
+/* $NetBSD: t_precision.c,v 1.2 2014/11/04 00:20:19 justin Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_precision.c,v 1.1 2013/11/11 11:10:45 joerg Exp $");
+__RCSID("$NetBSD: t_precision.c,v 1.2 2014/11/04 00:20:19 justin Exp $");
#include <atf-c.h>
-#include <atf-c/config.h>
#include <float.h>
#include <stdlib.h>
-/* $NetBSD: t_mutex.c,v 1.6 2014/02/09 21:26:07 jmmv Exp $ */
+/* $NetBSD: t_mutex.c,v 1.7 2014/11/04 00:20:19 justin Exp $ */
/*
* Copyright (c) 2008 The NetBSD Foundation, Inc.
#include <sys/cdefs.h>
__COPYRIGHT("@(#) Copyright (c) 2008\
The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_mutex.c,v 1.6 2014/02/09 21:26:07 jmmv Exp $");
+__RCSID("$NetBSD: t_mutex.c,v 1.7 2014/11/04 00:20:19 justin Exp $");
#include <pthread.h>
#include <stdio.h>
#include <unistd.h>
#include <atf-c.h>
-#include <atf-c/config.h>
#include "h_common.h"
-/* $NetBSD: t_sem.c,v 1.7 2012/03/09 19:46:37 joerg Exp $ */
+/* $NetBSD: t_sem.c,v 1.8 2014/11/04 00:20:19 justin Exp $ */
/*
* Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
#include <sys/cdefs.h>
__COPYRIGHT("@(#) Copyright (c) 2008, 2010\
The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_sem.c,v 1.7 2012/03/09 19:46:37 joerg Exp $");
+__RCSID("$NetBSD: t_sem.c,v 1.8 2014/11/04 00:20:19 justin Exp $");
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <atf-c.h>
-#include <atf-c/config.h>
#include "h_common.h"
.if defined(PROG)
# just one of many
-PROG_OVERRIDE_VARS += BINDIR MAN SRCS
+PROG_OVERRIDE_VARS += BINDIR DPSRCS MAN SRCS
PROG_VARS += CFLAGS CPPFLAGS CXXFLAGS DPADD DPLIBS LDADD LDFLAGS ${PROG_OVERRIDE_VARS}
.for v in ${PROG_VARS:O:u}
.if empty(${PROG_OVERRIDE_VARS:M$v})
.endif
.endif
+# The non-recursive call to bsd.progs.mk will handle FILES; NUL out
+# FILESGROUPS so recursive calls don't duplicate the work
+.ifdef _RECURSING_PROGS
+FILESGROUPS=
+.endif
+
# handle being called [bsd.]progs.mk
.include <bsd.prog.mk>
LIBNETBSD_OBJDIR= ${OBJTOP}/lib/libnetbsd
.for t in ${NETBSD_ATF_TESTS_C}
-# XXX: needed for atf-c/config.h after v0.2.1 upgrade. See NetBSD PR #
-# misc/49356 for more details
-CFLAGS.$t+= -I${SRCTOP}/contrib/atf
CFLAGS.$t+= -I${LIBNETBSD_SRCDIR} -I${SRCTOP}/contrib/netbsd-tests
LDFLAGS.$t+= -L${LIBNETBSD_OBJDIR}