From 4cd28ed2aa3f098a1d35dd44ecec27002fadb89b Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 13 Feb 2016 15:57:41 -0500 Subject: Fix -name handling when the root has trailing slashes. --- tests.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'tests.sh') diff --git a/tests.sh b/tests.sh index 046fddd..97d274b 100755 --- a/tests.sh +++ b/tests.sh @@ -199,7 +199,23 @@ function test_0032() { find_diff -L "$links" -xtype f 2>/dev/null } -for i in {1..32}; do +function test_0033() { + find_diff "$basic/a" -name 'a' +} + +function test_0034() { + find_diff "$basic/g/" -name 'g' +} + +function test_0035() { + find_diff "/" -maxdepth 0 -name '/' 2>/dev/null +} + +function test_0036() { + find_diff "//" -maxdepth 0 -name '/' 2>/dev/null +} + +for i in {1..36}; do test="test_$(printf '%04d' $i)" "$test" "$dir" status=$? -- cgit v1.2.3