diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2022-12-16 15:32:04 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2022-12-16 15:32:04 -0500 |
commit | e50c19f284dad6b4b7b79f91cc8576a97626be8a (patch) | |
tree | 3fc7b15a412d4123d403bca6fdbf3225389926e1 /tests/posix/depth_error.sh | |
parent | 7d87b96b421b76e387cee903b7b7c1bc16c54310 (diff) | |
download | bfs-e50c19f284dad6b4b7b79f91cc8576a97626be8a.tar.xz |
tests: Turn on set -e
Diffstat (limited to 'tests/posix/depth_error.sh')
-rw-r--r-- | tests/posix/depth_error.sh | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/posix/depth_error.sh b/tests/posix/depth_error.sh index f770210..15cc82d 100644 --- a/tests/posix/depth_error.sh +++ b/tests/posix/depth_error.sh @@ -1,11 +1,7 @@ clean_scratch "$XTOUCH" -p scratch/foo/bar -chmod a-r scratch/foo - -bfs_diff scratch -depth -ret=$? -chmod +r scratch/foo -clean_scratch +chmod a-r scratch/foo +trap "chmod +r scratch/foo" EXIT -[ $ret -eq $EX_BFS ] +check_exit $EX_BFS bfs_diff scratch -depth |