Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/fs/vfs skip userlevel filesystems that have their own ...



details:   https://anonhg.NetBSD.org/src/rev/fe8f022178a3
branches:  trunk
changeset: 364580:fe8f022178a3
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Mar 30 13:43:42 2022 +0000

description:
skip userlevel filesystems that have their own rules (they depend on the
system setting of the sysctl on NetBSD) and zfs because it implements its
own rules for hardlinks to files (does its own permission checks).

diffstat:

 tests/fs/vfs/t_link.c |  16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diffs (38 lines):

diff -r a87308285a1b -r fe8f022178a3 tests/fs/vfs/t_link.c
--- a/tests/fs/vfs/t_link.c     Wed Mar 30 13:23:59 2022 +0000
+++ b/tests/fs/vfs/t_link.c     Wed Mar 30 13:43:42 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_link.c,v 1.2 2022/03/29 22:30:07 christos Exp $      */
+/*     $NetBSD: t_link.c,v 1.3 2022/03/30 13:43:42 christos Exp $      */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -43,9 +43,17 @@
 #include "../common/h_fsmacros.h"
 #include "h_macros.h"
 
-#define USES_OWNER                                                      \
-       if (FSTYPE_MSDOS(tc))                                            \
+#define USES_OWNER                                                     \
+       if (FSTYPE_MSDOS(tc))                                           \
            atf_tc_skip("owner not supported by file system")
+#define USES_USERLEVEL                                                 \
+       if (FSTYPE_PUFFS(tc) || FSTYPE_P2K_FFS(tc))                     \
+           atf_tc_skip("userlevel pass not supported, "                \
+               "since sysctl might not be set in underlying system")
+#define USES_OWNCHECK                                                  \
+       if (FSTYPE_ZFS(tc))                                             \
+           atf_tc_skip("zfs not supported since it has its "           \
+               "own rules for hardlinks")
 
 
 static void
@@ -57,6 +65,8 @@
        int one = 1, fd;
 
        USES_OWNER;
+       USES_USERLEVEL;
+       USES_OWNCHECK;
 
        FSTEST_ENTER();
 



Home | Main Index | Thread Index | Old Index