summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-12-05 07:59:14 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-12-05 08:07:31 -0500
commit5ef696da405d72a68d0996a7c4662f689accee82 (patch)
tree56dc0fbf8a28c7c7c611ffdee6310b28218b453d
parent49e767ccb9dcfd2161b89f0d7a980eb85f056c5d (diff)
downloadbfs-5ef696da405d72a68d0996a7c4662f689accee82.tar.xz
tests: Don't check -links for directories
-rwxr-xr-xtests.sh6
-rw-r--r--tests/test_0024.out1
-rw-r--r--tests/test_0025.out4
-rw-r--r--tests/test_0026.out4
4 files changed, 3 insertions, 12 deletions
diff --git a/tests.sh b/tests.sh
index 54371fd..9a9a38f 100755
--- a/tests.sh
+++ b/tests.sh
@@ -209,15 +209,15 @@ function test_0023() {
}
function test_0024() {
- bfs_diff links -links 2
+ bfs_diff links -type f -links 2
}
function test_0025() {
- bfs_diff links -links -2
+ bfs_diff links -type f -links -2
}
function test_0026() {
- bfs_diff links -links +1
+ bfs_diff links -type f -links +1
}
function test_0027() {
diff --git a/tests/test_0024.out b/tests/test_0024.out
index a3dcbb2..892c879 100644
--- a/tests/test_0024.out
+++ b/tests/test_0024.out
@@ -1,3 +1,2 @@
links/a
links/c
-links/d/e/f
diff --git a/tests/test_0025.out b/tests/test_0025.out
index 092fe54..e69de29 100644
--- a/tests/test_0025.out
+++ b/tests/test_0025.out
@@ -1,4 +0,0 @@
-links/b
-links/h
-links/d/e/g
-links/d/e/i
diff --git a/tests/test_0026.out b/tests/test_0026.out
index 1f94970..892c879 100644
--- a/tests/test_0026.out
+++ b/tests/test_0026.out
@@ -1,6 +1,2 @@
-links
links/a
links/c
-links/d
-links/d/e
-links/d/e/f