Module Name: src Committed By: christos Date: Wed Mar 30 13:43:42 UTC 2022
Modified Files: src/tests/fs/vfs: t_link.c Log Message: 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). To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/fs/vfs/t_link.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/fs/vfs/t_link.c diff -u src/tests/fs/vfs/t_link.c:1.2 src/tests/fs/vfs/t_link.c:1.3 --- src/tests/fs/vfs/t_link.c:1.2 Tue Mar 29 18:30:07 2022 +++ src/tests/fs/vfs/t_link.c Wed Mar 30 09:43:42 2022 @@ -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 @@ hardlink(const atf_tc_t *tc, const char int one = 1, fd; USES_OWNER; + USES_USERLEVEL; + USES_OWNCHECK; FSTEST_ENTER();