Source-Changes-HG archive

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

[src/trunk]: src/tests/fs/common zfs tests don't actually need privileges.



details:   https://anonhg.NetBSD.org/src/rev/63eea7173f93
branches:  trunk
changeset: 807016:63eea7173f93
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Mar 24 23:22:47 2015 +0000

description:
zfs tests don't actually need privileges.

diffstat:

 tests/fs/common/h_fsmacros.h |  10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

diffs (31 lines):

diff -r 5a292addc46a -r 63eea7173f93 tests/fs/common/h_fsmacros.h
--- a/tests/fs/common/h_fsmacros.h      Tue Mar 24 21:29:52 2015 +0000
+++ b/tests/fs/common/h_fsmacros.h      Tue Mar 24 23:22:47 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: h_fsmacros.h,v 1.38 2013/06/26 19:29:24 reinoud Exp $  */
+/*     $NetBSD: h_fsmacros.h,v 1.39 2015/03/24 23:22:47 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -110,10 +110,6 @@
                atf_tc_set_md_var(tc, "descr", type " test for " desc); \
                atf_tc_set_md_var(tc, "X-fs.type", #fs);                \
                atf_tc_set_md_var(tc, "X-fs.mntname", type);            \
-               if (strcmp(#fs, "zfs") == 0) {                          \
-                       /* This should not be necessary. */             \
-                       atf_tc_set_md_var(tc, "require.user", "root");  \
-               }                                                       \
        }                                                               \
        void *fs##func##tmp;                                            \
                                                                        \
@@ -136,10 +132,6 @@
                atf_tc_set_md_var(tc, "descr",_type_" test for "_desc_);\
                atf_tc_set_md_var(tc, "X-fs.type", #_fs_);              \
                atf_tc_set_md_var(tc, "X-fs.mntname", _type_);          \
-               if (strcmp(#_fs_, "zfs") == 0) {                        \
-                       /* This should not be necessary. */             \
-                       atf_tc_set_md_var(tc, "require.user", "root");  \
-               }                                                       \
        }                                                               \
        void *_fs_##_func_##tmp;                                        \
                                                                        \



Home | Main Index | Thread Index | Old Index