summaryrefslogtreecommitdiff
path: root/tests/include
diff options
context:
space:
mode:
authorjruoho <jruoho@NetBSD.org>2011-03-30 18:31:15 +0000
committerjruoho <jruoho@NetBSD.org>2011-03-30 18:31:15 +0000
commitb9d64f0a74527b87aaef15e5b7a4c42e2dec8487 (patch)
tree5cef4a634b7605dadfd54b27af825a2e22b58376 /tests/include
parent8ee6a93427b1212b079bf603c0980130580b9888 (diff)
Another proof that even the naive test cases are worth it;
expect a failure with fstat(2) and bpf(4), PR lib/44807.
Diffstat (limited to 'tests/include')
-rw-r--r--tests/include/t_paths.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/include/t_paths.c b/tests/include/t_paths.c
index 2045f288be2..fd5fb84147f 100644
--- a/tests/include/t_paths.c
+++ b/tests/include/t_paths.c
@@ -1,4 +1,4 @@
-/* $NetBSD: t_paths.c,v 1.1 2011/03/30 09:43:22 jruoho Exp $ */
+/* $NetBSD: t_paths.c,v 1.2 2011/03/30 18:31:15 jruoho 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.1 2011/03/30 09:43:22 jruoho Exp $");
+__RCSID("$NetBSD: t_paths.c,v 1.2 2011/03/30 18:31:15 jruoho Exp $");
#include <sys/param.h>
#include <sys/stat.h>
@@ -160,6 +160,9 @@ ATF_TC_BODY(paths, tc)
if ((paths[i].flags & PATH_DEV) != 0) {
+ if (strcmp(paths[i].path, _PATH_BPF) == 0)
+ atf_tc_expect_fail("PR kern/44807");
+
ATF_REQUIRE(S_ISBLK(m) != 0 || S_ISCHR(m) != 0);
ATF_REQUIRE((paths[i].flags & PATH_DIR) == 0);