summaryrefslogtreecommitdiffstats
path: root/tests/common/empty_error.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-04-24 11:07:33 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-04-24 11:08:10 -0400
commitd597be5bc1ee0e76117037b7d9a52c52fd4531ad (patch)
treea8384fcb4cabde1da989b8c3e3b114b8114dfcc0 /tests/common/empty_error.sh
parent30e309de41aaca259c4d0a200daa42ba74cbc5a5 (diff)
downloadbfs-d597be5bc1ee0e76117037b7d9a52c52fd4531ad.tar.xz
eval: Plug memory leak if bfs_opendir() fails
Diffstat (limited to 'tests/common/empty_error.sh')
-rw-r--r--tests/common/empty_error.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/common/empty_error.sh b/tests/common/empty_error.sh
new file mode 100644
index 0000000..7c8049c
--- /dev/null
+++ b/tests/common/empty_error.sh
@@ -0,0 +1,7 @@
+cd "$TEST"
+
+"$XTOUCH" -p foo/ bar/ baz qux
+chmod -r foo baz
+defer chmod +r foo baz
+
+! bfs_diff . -empty