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/rm/readdir-bug | |
| parent | Move all tests from test/{od,sha1sum,shred,stty} to tests/misc/. (diff) | |
| download | coreutils-a669dfdabb3fa1be2e1367d53a797d495e7bd5c9.tar.gz coreutils-a669dfdabb3fa1be2e1367d53a797d495e7bd5c9.zip | |
More misc, test-related changes. (some to allow running tests as root)
Diffstat (limited to 'tests/rm/readdir-bug')
| -rwxr-xr-x | tests/rm/readdir-bug | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/tests/rm/readdir-bug b/tests/rm/readdir-bug index b9e90b4ef..6386b7583 100755 --- a/tests/rm/readdir-bug +++ b/tests/rm/readdir-bug @@ -22,30 +22,18 @@ if test "$VERBOSE" = yes; then rm --version fi -pwd=`pwd` -t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ -trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0 -trap '(exit $?); exit $?' 1 2 13 15 - -framework_failure=0 -mkdir -p $tmp || framework_failure=1 -cd $tmp || framework_failure=1 +. $srcdir/../test-lib.sh # Create a directory containing many files. # What counts is a combination of the number of files and # the lengths of their names. For details, see # http://lists.gnu.org/archive/html/bug-coreutils/2006-09/msg00326.html -mkdir b || framework_failure=1 -cd b || framework_failure=1 +mkdir b || framework_failure +cd b || framework_failure for i in `seq 1 250`; do - touch `printf %040d $i` || framework_failure=1 + touch `printf %040d $i` || framework_failure done -cd .. || framework_failure=1 - -if test $framework_failure = 1; then - echo "$0: failure in testing framework" 1>&2 - (exit 1); exit 1 -fi +cd .. || framework_failure fail=0 |
