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/touch/fail-diag | |
parent | 0539705768992ebcc290bc859f64e27898c7f958 (diff) | |
download | coreutils-a669dfdabb3fa1be2e1367d53a797d495e7bd5c9.tar.xz |
More misc, test-related changes. (some to allow running tests as root)
Diffstat (limited to 'tests/touch/fail-diag')
-rwxr-xr-x | tests/touch/fail-diag | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/tests/touch/fail-diag b/tests/touch/fail-diag index b1abdba37..018d191e5 100755 --- a/tests/touch/fail-diag +++ b/tests/touch/fail-diag @@ -21,23 +21,14 @@ if test "$VERBOSE" = yes; then touch --version fi -. $srcdir/../envvar-check . $srcdir/../lang-default -PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check - . $srcdir/../test-lib.sh - -framework_failure=0 +skip_if_root_ d1=no-$$ dir=/$d1/such-dir # Ensure that $d1 doesn't already exist. -ls -d $d1 2> /dev/null && framework_failure=1 - -if test $framework_failure = 1; then - echo 'failure in testing framework' 1>&2 - (exit 1); exit 1 -fi +ls -d $d1 2> /dev/null && framework_failure fail=0 |