summaryrefslogtreecommitdiff
path: root/tests/misc
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-09-12 14:52:26 +0200
committerJim Meyering <jim@meyering.net>2007-09-15 08:40:39 +0200
commita669dfdabb3fa1be2e1367d53a797d495e7bd5c9 (patch)
treec88d6414649f7f4f5571138e193c72da44a03876 /tests/misc
parent0539705768992ebcc290bc859f64e27898c7f958 (diff)
downloadcoreutils-a669dfdabb3fa1be2e1367d53a797d495e7bd5c9.tar.xz
More misc, test-related changes. (some to allow running tests as root)
Diffstat (limited to 'tests/misc')
-rwxr-xr-xtests/misc/pathchk12
-rwxr-xr-xtests/misc/selinux2
-rwxr-xr-xtests/misc/shred-remove2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/misc/pathchk1 b/tests/misc/pathchk1
index ffe917910..453a8e277 100755
--- a/tests/misc/pathchk1
+++ b/tests/misc/pathchk1
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
pathchk --version
fi
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
. $srcdir/../test-lib.sh
+skip_if_root_
touch file || framework_failure
diff --git a/tests/misc/selinux b/tests/misc/selinux
index 90ab2d6c4..a4fc78ac4 100755
--- a/tests/misc/selinux
+++ b/tests/misc/selinux
@@ -12,8 +12,8 @@ fi
. $srcdir/../lang-default
. $srcdir/../selinux
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
. $srcdir/../test-lib.sh
+skip_if_root_
# Create a regular file, dir, fifo.
touch f || framework_failure
diff --git a/tests/misc/shred-remove b/tests/misc/shred-remove
index ae7443b18..f09c6f3e8 100755
--- a/tests/misc/shred-remove
+++ b/tests/misc/shred-remove
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
shred --version
fi
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
. $srcdir/../test-lib.sh
+skip_if_root_
# The length of the basename is what matters.
# In this case, shred would try to rename the file 256^10 times