diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2016-02-13 15:57:41 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2016-02-13 15:57:41 -0500 |
commit | 4cd28ed2aa3f098a1d35dd44ecec27002fadb89b (patch) | |
tree | 4265775ce79279c6483c1859f12dc89e620c7c43 /tests.sh | |
parent | a54c9309c3291a960fcbcbc9e6407330a9edd044 (diff) | |
download | bfs-4cd28ed2aa3f098a1d35dd44ecec27002fadb89b.tar.xz |
Fix -name handling when the root has trailing slashes.
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -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=$? |