summaryrefslogtreecommitdiffstats
path: root/tests/posix/depth_error.sh
blob: 9acf97631a453c9a43890d98df78189c4e2103b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
rm -rf scratch/*
touchp scratch/foo/bar
chmod a-r scratch/foo

bfs_diff scratch -depth
ret=$?

chmod +r scratch/foo
rm -rf scratch/*

[ $ret -eq $EX_BFS ]