summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-01-20 21:48:42 +0000
committerngie <ngie@FreeBSD.org>2015-01-20 21:48:42 +0000
commit63ef816492d021cead6a6f0bc9b9943ae24262d7 (patch)
tree8785c745171878a2bcdd7be65d97fdf5b21a826e /contrib
parent914ba0497abb7c4a0407b96e2f061870b0a4a4b9 (diff)
downloadFreeBSD-src-63ef816492d021cead6a6f0bc9b9943ae24262d7.zip
FreeBSD-src-63ef816492d021cead6a6f0bc9b9943ae24262d7.tar.gz
MFC r276590:
r276590 (by jilles): Link lib/libc/c063 tests to the build. Some files lack required #include <sys/stat.h>. The #ifdef is per ngie's request; the includes are clearly necessary for struct stat. The faccessat test fails because it tries to use AT_SYMLINK_NOFOLLOW with faccessat(), which is not specified by POSIX.1-2008. Differential Revision: https://reviews.freebsd.org/D1411 Reviewed by: ngie
Diffstat (limited to 'contrib')
-rw-r--r--contrib/netbsd-tests/lib/libc/c063/t_faccessat.c3
-rw-r--r--contrib/netbsd-tests/lib/libc/c063/t_fchmodat.c3
-rw-r--r--contrib/netbsd-tests/lib/libc/c063/t_fchownat.c3
-rw-r--r--contrib/netbsd-tests/lib/libc/c063/t_fstatat.c3
4 files changed, 12 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libc/c063/t_faccessat.c b/contrib/netbsd-tests/lib/libc/c063/t_faccessat.c
index c9e0cc8..5afdee9 100644
--- a/contrib/netbsd-tests/lib/libc/c063/t_faccessat.c
+++ b/contrib/netbsd-tests/lib/libc/c063/t_faccessat.c
@@ -165,6 +165,9 @@ ATF_TC_BODY(faccessat_fdlink, tc)
ATF_REQUIRE(faccessat(dfd, BASELINK, F_OK, 0) == -1);
ATF_REQUIRE(errno == ENOENT);
+#ifdef __FreeBSD__
+ atf_tc_expect_fail("Depends on non-standard behavior not mentioned in POSIX.1-2008");
+#endif
ATF_REQUIRE(faccessat(dfd, BASELINK, F_OK, AT_SYMLINK_NOFOLLOW) == 0);
ATF_REQUIRE(close(dfd) == 0);
diff --git a/contrib/netbsd-tests/lib/libc/c063/t_fchmodat.c b/contrib/netbsd-tests/lib/libc/c063/t_fchmodat.c
index 462d53d..6598059 100644
--- a/contrib/netbsd-tests/lib/libc/c063/t_fchmodat.c
+++ b/contrib/netbsd-tests/lib/libc/c063/t_fchmodat.c
@@ -40,6 +40,9 @@ __RCSID("$NetBSD: t_fchmodat.c,v 1.2 2013/03/17 04:46:06 jmmv Exp $");
#include <string.h>
#include <unistd.h>
#include <sys/param.h>
+#ifdef __FreeBSD__
+#include <sys/stat.h>
+#endif
#define DIR "dir"
#define FILE "dir/fchmodat"
diff --git a/contrib/netbsd-tests/lib/libc/c063/t_fchownat.c b/contrib/netbsd-tests/lib/libc/c063/t_fchownat.c
index 80c7606..2ca14cf 100644
--- a/contrib/netbsd-tests/lib/libc/c063/t_fchownat.c
+++ b/contrib/netbsd-tests/lib/libc/c063/t_fchownat.c
@@ -41,6 +41,9 @@ __RCSID("$NetBSD: t_fchownat.c,v 1.3 2013/03/17 04:46:06 jmmv Exp $");
#include <unistd.h>
#include <pwd.h>
#include <sys/param.h>
+#ifdef __FreeBSD__
+#include <sys/stat.h>
+#endif
#define DIR "dir"
#define FILE "dir/fchownat"
diff --git a/contrib/netbsd-tests/lib/libc/c063/t_fstatat.c b/contrib/netbsd-tests/lib/libc/c063/t_fstatat.c
index a48cd57..b23f625 100644
--- a/contrib/netbsd-tests/lib/libc/c063/t_fstatat.c
+++ b/contrib/netbsd-tests/lib/libc/c063/t_fstatat.c
@@ -40,6 +40,9 @@ __RCSID("$NetBSD: t_fstatat.c,v 1.2 2013/03/17 04:46:06 jmmv Exp $");
#include <string.h>
#include <unistd.h>
#include <sys/param.h>
+#ifdef __FreeBSD__
+#include <sys/stat.h>
+#endif
#define DIR "dir"
#define FILE "dir/fstatat"
OpenPOWER on IntegriCloud