diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-02-07 18:47:46 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-02-07 18:49:08 -0500 |
commit | 563b5f9d48e54dc2f5d61a23ce2171e005da201a (patch) | |
tree | 3e4c0d8cb90ce9c92c966a28e7497fdc42091d01 /tests.sh | |
parent | 41fde4795277fec5a57ecb6d43d9b39123739c3f (diff) | |
download | bfs-563b5f9d48e54dc2f5d61a23ce2171e005da201a.tar.xz |
tests: Add tests for -no{group,user} under fd pressure
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -386,8 +386,10 @@ bsd_tests=( test_newerma test_nogroup + test_nogroup_ulimit test_nouser + test_nouser_ulimit test_ok_stdin test_ok_closed_stdin @@ -529,8 +531,10 @@ gnu_tests=( test_newerma test_nogroup + test_nogroup_ulimit test_nouser + test_nouser_ulimit test_ok_closed_stdin test_ok_nothing @@ -1653,10 +1657,22 @@ function test_nogroup() { bfs_diff basic -nogroup } +function test_nogroup_ulimit() { + closefrom 4 + ulimit -n 16 + bfs_diff deep -nogroup +} + function test_nouser() { bfs_diff basic -nouser } +function test_nouser_ulimit() { + closefrom 4 + ulimit -n 16 + bfs_diff deep -nouser +} + function test_printf() { bfs_diff basic -printf '%%p(%p) %%d(%d) %%f(%f) %%h(%h) %%H(%H) %%P(%P) %%m(%m) %%M(%M) %%y(%y)\n' } |