glibc says "Too many levels of symbolic links", but BSD says "Too many symbolic links encountered".
(I still wish we had a regex match version of testing/testcmd, but I'm still not really sure what it would look like. All I care about here is that we did report that there was a problem with dir/looper...) --- tests/find.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
From 79e8c47c598eabfb570f71d877844a38ad3132e6 Mon Sep 17 00:00:00 2001 From: Elliott Hughes <[email protected]> Date: Wed, 14 Aug 2019 18:01:33 -0700 Subject: [PATCH] find.test: fix test expectation for BSD libcs. glibc says "Too many levels of symbolic links", but BSD says "Too many symbolic links encountered". (I still wish we had a regex match version of testing/testcmd, but I'm still not really sure what it would look like. All I care about here is that we did report that there was a problem with dir/looper...) --- tests/find.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/find.test b/tests/find.test index b3f798b8..60b6591e 100755 --- a/tests/find.test +++ b/tests/find.test @@ -107,8 +107,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 | sort | sed s/\'//g" \ - "dir/file\nfind: dir/looper: Too many levels of symbolic links\n" "" "" + "LANG=C find -L dir -name file 2>&1 | sort | sed s/\'//g | sed 's/Too many.*/Too many/g'" \ + "dir/file\nfind: dir/looper: Too many\n" "" "" testing "-false" "find dir -false" "" "" "" testing "-true" "find dir/file -true" "dir/file\n" "" "" -- 2.23.0.rc1.153.gdeed80330f-goog
_______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
