From b0952dd04524683189cb49066c6daa938353b656 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 26 Feb 2000 21:34:41 +0000 Subject: [PATCH] Don't make the success of the test depend on the order in which directory entries are processed. Reported by Andreas Schwab. --- tests/rm/r-2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.47.3