From 563b5f9d48e54dc2f5d61a23ce2171e005da201a Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 7 Feb 2019 18:47:46 -0500 Subject: tests: Add tests for -no{group,user} under fd pressure --- tests.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tests.sh') diff --git a/tests.sh b/tests.sh index 57b19de..926bf6f 100755 --- a/tests.sh +++ b/tests.sh @@ -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' } -- cgit v1.2.3