summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2018-11-14 00:15:48 -0500
committerTavian Barnes <tavianator@tavianator.com>2018-11-14 00:15:48 -0500
commit14065fe78c133bc49e46557a8cfdec7ed6b618bc (patch)
tree2e597f86bc770023983b184265f7e7f55b80e131
parenta8f7b6dbd743bc224e2a8616993c373e82072956 (diff)
downloadbfs-14065fe78c133bc49e46557a8cfdec7ed6b618bc.tar.xz
tests: Don't assume BSD find has the "implicit ."
Also, FreeBSD find rejects -L -delete, so don't test it under --bsd.
-rwxr-xr-xtests.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests.sh b/tests.sh
index 2930f86..4ced3c0 100755
--- a/tests.sh
+++ b/tests.sh
@@ -299,7 +299,6 @@ bsd_tests=(
# Primaries
test_delete
- test_L_delete
test_depth_maxdepth_1
test_depth_maxdepth_2
@@ -1387,7 +1386,7 @@ function test_delete() {
touchp scratch/foo/bar/baz
# Don't try to delete '.'
- (cd scratch && invoke_bfs -delete)
+ (cd scratch && invoke_bfs . -delete)
bfs_diff scratch
}
@@ -1408,7 +1407,7 @@ function test_rm() {
rm -rf scratch/*
touchp scratch/foo/bar/baz
- (cd scratch && invoke_bfs -rm)
+ (cd scratch && invoke_bfs . -rm)
bfs_diff scratch
}