summaryrefslogtreecommitdiffstats
path: root/tests/posix/exec_ulimit.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-11-02 11:29:28 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-11-02 12:15:58 -0400
commit1cfa66a4268a4eefea29f207baaefd76d7792027 (patch)
treee5395b97bee9f0cf728c073f039d3dc45362c49a /tests/posix/exec_ulimit.sh
parentb2ab7a151fca517f4879e76e626ec85ad3de97c7 (diff)
downloadbfs-1cfa66a4268a4eefea29f207baaefd76d7792027.tar.xz
tests: Add tests for ulimit -n after -exec
Diffstat (limited to 'tests/posix/exec_ulimit.sh')
-rw-r--r--tests/posix/exec_ulimit.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/posix/exec_ulimit.sh b/tests/posix/exec_ulimit.sh
new file mode 100644
index 0000000..8ac8ff1
--- /dev/null
+++ b/tests/posix/exec_ulimit.sh
@@ -0,0 +1,2 @@
+ulimit -Sn 16
+bfs_diff deep -type f -exec bash -c 'printf "%d %s\n" $(ulimit -Sn) "${1:0:6}/.../${1##*/}"' bash {} \;