aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-08-12 10:26:33 -0700
committerRob Landley <rob@landley.net>2019-08-12 21:19:18 -0500
commit09ff0595ee949c34e9d244a3042b28adc36e2136 (patch)
tree635de2efba8ae082edbc09bfdff8910cf8daa272
parent30cb3aa0e33daa20d6adb0825979f79e615c9c47 (diff)
downloadtoybox-09ff0595ee949c34e9d244a3042b28adc36e2136.tar.gz
find.test: fix flakiness.
Don't depend on directory iteration order in a test.
-rwxr-xr-xtests/find.test3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/find.test b/tests/find.test
index cbca8e76..b3f798b8 100755
--- a/tests/find.test
+++ b/tests/find.test
@@ -106,7 +106,8 @@ testing "-printf .N" "find dir -name file -printf %.2f" "fi" "" ""
ln -s does-not-exist dir/dangler
ln -s looper dir/looper
-testing "-L dangling link" "LANG=C find -L dir -name file 2>&1 | sed s/\'//g" \
+testing "-L dangling link" \
+ "LANG=C find -L dir -name file 2>&1 | sort | sed s/\'//g" \
"dir/file\nfind: dir/looper: Too many levels of symbolic links\n" "" ""
testing "-false" "find dir -false" "" "" ""