summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-02-13 15:57:41 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-02-13 15:57:41 -0500
commit4cd28ed2aa3f098a1d35dd44ecec27002fadb89b (patch)
tree4265775ce79279c6483c1859f12dc89e620c7c43 /tests.sh
parenta54c9309c3291a960fcbcbc9e6407330a9edd044 (diff)
downloadbfs-4cd28ed2aa3f098a1d35dd44ecec27002fadb89b.tar.xz
Fix -name handling when the root has trailing slashes.
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh18
1 files changed, 17 insertions, 1 deletions
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=$?