From 442c1853d1556610e96e41babdfb7b706f3d2ccf Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 25 Apr 2016 00:55:01 -0500 Subject: Fix find bug reported by Tom Marshall, add test for it, and while we're at it fix two tests looking for a too-specific error message (so TEST_HOST failed). --- tests/find.test | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/find.test b/tests/find.test index 580d1959..25c24400 100755 --- a/tests/find.test +++ b/tests/find.test @@ -87,7 +87,11 @@ testing "-iname FILE" \ testing "-name (no arguments)" \ - "find dir -name 2>&1" "find: '-name' needs 1 arg\n" "" "" + "find dir -name 2>&1 | grep -o '[-]name'" "-name\n" "" "" testing "-iname (no arguments)" \ - "find dir -iname 2>&1" "find: '-iname' needs 1 arg\n" "" "" + "find dir -iname 2>&1 | grep -o '[-]iname'" "-iname\n" "" "" + +testing "" "find dir \( -iname file -o -iname missing \) -exec echo {} \;" \ + "dir/file\n" "" "" + rm -rf dir -- cgit v1.2.3