summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2018-06-24 16:28:27 -0400
committerTavian Barnes <tavianator@tavianator.com>2018-06-24 16:28:27 -0400
commitaa2401a60ac5243bed8616b108894d7a954bba8e (patch)
treef38d3720aa780b9410f65fc294301b9d01461bb1
parent70198a7ac2f542a0e708ae3ca8e6b3e874f61f18 (diff)
downloadbfs-aa2401a60ac5243bed8616b108894d7a954bba8e.tar.xz
tests: Relax test_depth_error
Whether bfs can return children of a directory without search permission depends on whether d_type is filled in, which can't be guaranteed.
-rwxr-xr-xtests.sh3
-rw-r--r--tests/test_depth_error.out2
2 files changed, 0 insertions, 5 deletions
diff --git a/tests.sh b/tests.sh
index 8f0f72c..9302cfc 100755
--- a/tests.sh
+++ b/tests.sh
@@ -624,15 +624,12 @@ function test_depth_maxdepth_2() {
function test_depth_error() {
rm -rf scratch/*
touchp scratch/foo/bar
- touchp scratch/baz/qux
chmod -r scratch/foo
- chmod -x scratch/baz
bfs_diff scratch -depth 2>/dev/null
local ret=$?
chmod +r scratch/foo
- chmod +x scratch/baz
rm -rf scratch/*
return $ret
diff --git a/tests/test_depth_error.out b/tests/test_depth_error.out
index fad4b28..ed0e9a1 100644
--- a/tests/test_depth_error.out
+++ b/tests/test_depth_error.out
@@ -1,4 +1,2 @@
scratch
-scratch/baz
scratch/foo
-scratch/baz/qux