diff options
author | Jim Meyering <jim@meyering.net> | 2007-09-12 14:52:26 +0200 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-09-15 08:40:39 +0200 |
commit | a669dfdabb3fa1be2e1367d53a797d495e7bd5c9 (patch) | |
tree | c88d6414649f7f4f5571138e193c72da44a03876 /tests/chmod | |
parent | 0539705768992ebcc290bc859f64e27898c7f958 (diff) | |
download | coreutils-a669dfdabb3fa1be2e1367d53a797d495e7bd5c9.tar.gz coreutils-a669dfdabb3fa1be2e1367d53a797d495e7bd5c9.tar.bz2 coreutils-a669dfdabb3fa1be2e1367d53a797d495e7bd5c9.zip |
More misc, test-related changes. (some to allow running tests as root)
Diffstat (limited to 'tests/chmod')
-rwxr-xr-x | tests/chmod/no-x | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/chmod/no-x b/tests/chmod/no-x index 64dffb95b..8e84ad262 100755 --- a/tests/chmod/no-x +++ b/tests/chmod/no-x @@ -23,10 +23,10 @@ if test "$VERBOSE" = yes; then fi . $srcdir/../lang-default -PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check . $srcdir/../test-lib.sh +skip_if_root_ -mkdir -p d/no-x/y || framework_failure +mkdir -p d/no-x/y a/b || framework_failure chmod u=rw d/no-x || framework_failure fail=0 @@ -52,7 +52,6 @@ EOF compare out exp || fail=1 -mkdir -p a/b cd a # This will fail with ``chmod: fts_read failed: Permission denied'' chmod a-x . b 2> /dev/null && fail=1 |