From: Jim Meyering Date: Sat, 26 Feb 2000 21:34:41 +0000 (+0000) Subject: Don't make the success of the test depend on the X-Git-Tag: FILEUTILS-4_0q~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b0952dd04524683189cb49066c6daa938353b656;p=thirdparty%2Fcoreutils.git Don't make the success of the test depend on the order in which directory entries are processed. Reported by Andreas Schwab. --- diff --git a/tests/rm/r-2 b/tests/rm/r-2 index 2334f19d07..cd4a3abd0c 100755 --- a/tests/rm/r-2 +++ b/tests/rm/r-2 @@ -17,7 +17,7 @@ mkdir $tmp $tmp/a $tmp/a/b > $tmp/a/b/g # FIXME: if this fails, it's a framework failure -cat < $tmp/$test.E +cat < $tmp/$test.E removing all entries of directory $tmp/a removing all entries of directory $tmp/a/b removing $tmp/a/b/g @@ -31,8 +31,10 @@ export LANGUAGE LANG=C export LANG +# Note that both the expected output (above) and the actual output lines +# are sorted, because directory entries may be processed in arbitrary order. fail=0 -$RM --verbose -r $tmp/a > $tmp/$test.O || fail=1 +$RM --verbose -r $tmp/a | sort > $tmp/$test.O || fail=1 if test -d $tmp/a; then fail=1