]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
Import proper fix for misc/49356 (/usr/include/atf-c/config.h) after atf-c/config.h
authorngie <ngie@FreeBSD.org>
Tue, 4 Nov 2014 05:02:22 +0000 (05:02 +0000)
committerngie <ngie@FreeBSD.org>
Tue, 4 Nov 2014 05:02:22 +0000 (05:02 +0000)
was removed from the build

Pointyhat to: me (again, for not running make delete-old after running test builds)

16 files changed:
contrib/netbsd-tests/include/t_paths.c
contrib/netbsd-tests/lib/libc/gen/t_floatunditf.c
contrib/netbsd-tests/lib/libc/gen/t_fpsetmask.c
contrib/netbsd-tests/lib/libc/gen/t_isnan.c
contrib/netbsd-tests/lib/libc/gen/t_siginfo.c
contrib/netbsd-tests/lib/libc/stdlib/t_strtod.c
contrib/netbsd-tests/lib/libc/sys/t_sigaction.c
contrib/netbsd-tests/lib/libc/time/t_mktime.c
contrib/netbsd-tests/lib/libexecinfo/t_backtrace.c
contrib/netbsd-tests/lib/libm/t_ldexp.c
contrib/netbsd-tests/lib/libm/t_log.c
contrib/netbsd-tests/lib/libm/t_precision.c
contrib/netbsd-tests/lib/libpthread/t_mutex.c
contrib/netbsd-tests/lib/libpthread/t_sem.c
share/mk/bsd.progs.mk
share/mk/netbsd-tests.test.mk

index 925bb3a8b74072347669d2a11b89df70f8b7ef67..653a70bea24e13290d7fc23350ec93bfa06f343f 100644 (file)
@@ -1,4 +1,4 @@
-/*     $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.
@@ -29,7 +29,7 @@
  * 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>
@@ -42,7 +42,6 @@ __RCSID("$NetBSD: t_paths.c,v 1.13 2014/02/09 21:26:07 jmmv Exp $");
 #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          */
index 9561a3c22652e1c00f1b25c806f6bcadd6c83452..ef372f76762b4247ce7991a587e2422718ca3661 100644 (file)
@@ -1,4 +1,4 @@
-/* $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.
@@ -27,7 +27,6 @@
  */
 
 #include <atf-c.h>
-#include <atf-c/config.h>
 #include <inttypes.h>
 #include <math.h>
 
index 998eb858db8038ece5633fb49b48db07bbebfbb8..3366c1f2f5cbaf8050608900bec2131a118d8c36 100644 (file)
@@ -1,4 +1,4 @@
-/*     $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.
@@ -29,7 +29,6 @@
 #include <sys/param.h>
 
 #include <atf-c.h>
-#include <atf-c/config.h>
 
 #include <stdio.h>
 #include <signal.h>
index 2a97b9a91c481551b4fa73f374d3b1545f361044..2871e314066e542f662d94021519c9c72d0462a7 100644 (file)
@@ -1,4 +1,4 @@
-/* $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.
@@ -10,7 +10,6 @@
 #include <sys/param.h>
 
 #include <atf-c.h>
-#include <atf-c/config.h>
 
 #include <math.h>
 #include <string.h>
index e8026214ed05c5e9f9ee1413d558efd07cda65ff..6dc79531b6e50360517dbb9d880044ad7ec2f915 100644 (file)
@@ -1,4 +1,4 @@
-/* $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.
@@ -27,7 +27,6 @@
  */
 
 #include <atf-c.h>
-#include <atf-c/config.h>
 
 #if defined(__NetBSD__)
 #include <sys/inttypes.h>
index a449abcf0a95dc1d0985f5fdfecaf8ea0914c0fe..8f0f899e2ee405b3924b8a8c5f711d008739a658 100644 (file)
@@ -1,4 +1,4 @@
-/*     $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.
@@ -32,7 +32,7 @@
 /* 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>
@@ -41,7 +41,6 @@ __RCSID("$NetBSD: t_strtod.c,v 1.31 2012/09/26 07:24:38 jruoho Exp $");
 #include <string.h>
 
 #include <atf-c.h>
-#include <atf-c/config.h>
 
 #if defined(__i386__) || defined(__amd64__) || defined(__sparc__)
 #include <fenv.h>
index 132dbcb6fe15e9870f248dc55c2ed28c0459b35f..23ca36a659f84df9489a95dced7ef9e21053fb1a 100644 (file)
@@ -1,4 +1,4 @@
-/* $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.
@@ -29,7 +29,7 @@
 #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>
 
@@ -40,7 +40,6 @@ __RCSID("$NetBSD: t_sigaction.c,v 1.2 2012/11/07 16:51:16 pgoyette Exp $");
 #include <unistd.h>
 
 #include <atf-c.h>
-#include <atf-c/config.h>
 
 #ifdef __NetBSD__
 #include "../../../h_macros.h"
index caef9065cc9e9e64214cd3d3edcf68ae81b99a83..8092361dbc3624cc924ca005b0c3f032646265e6 100644 (file)
@@ -72,12 +72,7 @@ ATF_TC_BODY(mktime_negyear, tc)
 
        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);
index b5b573901222785399e730ce3c3e5b83444aa4d0..00f716e9c97299c8635cad0c0e01e47e786c116a 100644 (file)
@@ -1,4 +1,4 @@
-/*     $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>
index 9dd001d413fe788dbabe0938a90bd131c751dc94..eaf8a4bfdb189d46f6a7a0741969fde0f6d8ca85 100644 (file)
@@ -1,4 +1,4 @@
-/* $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>
index de5a1c649451e5537b0ed470b293f2e0e21bdf67..016423344be2f886eba4c118e9af709bb1d69111 100644 (file)
@@ -1,4 +1,4 @@
-/* $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>
index 390be9dd18aafb51a80f6040e68e0ed866dcde04..777666f297fb24e8adaeaedeea08f552cada90e2 100644 (file)
@@ -1,4 +1,4 @@
-/* $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>
index 1b435c2f43bde4dfcee2d72aa2f76827dab9b19c..b5b07b31b4f0e9d5b03fc23400c388b4fbf7b0ff 100644 (file)
@@ -1,4 +1,4 @@
-/* $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.
@@ -29,7 +29,7 @@
 #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>
@@ -37,7 +37,6 @@ __RCSID("$NetBSD: t_mutex.c,v 1.6 2014/02/09 21:26:07 jmmv Exp $");
 #include <unistd.h>
 
 #include <atf-c.h>
-#include <atf-c/config.h>
 
 #include "h_common.h"
 
index 467d182c5fff79555332271a14c13b6e1b6dec5c..a4e03ae9c605b0e547d1663c0dd77b0fbf747c96 100644 (file)
@@ -1,4 +1,4 @@
-/* $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.
@@ -86,7 +86,7 @@
 #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>
@@ -99,7 +99,6 @@ __RCSID("$NetBSD: t_sem.c,v 1.7 2012/03/09 19:46:37 joerg Exp $");
 #include <unistd.h>
 
 #include <atf-c.h>
-#include <atf-c/config.h>
 
 #include "h_common.h"
 
index 64fae5f48c80353af5a6078fc76e0d6e52a19d11..2af32b691cee024c2a18d31ff92da6c64161e256 100644 (file)
@@ -42,7 +42,7 @@ PROG ?= $t
 
 .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})
@@ -75,6 +75,12 @@ UPDATE_DEPENDFILE = NO
 .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>
 
index 150f6632daf3b198bedfc549480c4a073385871d..5c31d77b33594c1df8620a70d45e838ba9ff1e04 100644 (file)
@@ -21,9 +21,6 @@ LIBNETBSD_SRCDIR=     ${SRCTOP}/lib/libnetbsd
 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}