summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-02-07 18:47:46 -0500
committerTavian Barnes <tavianator@tavianator.com>2019-02-07 18:49:08 -0500
commit563b5f9d48e54dc2f5d61a23ce2171e005da201a (patch)
tree3e4c0d8cb90ce9c92c966a28e7497fdc42091d01 /tests.sh
parent41fde4795277fec5a57ecb6d43d9b39123739c3f (diff)
downloadbfs-563b5f9d48e54dc2f5d61a23ce2171e005da201a.tar.xz
tests: Add tests for -no{group,user} under fd pressure
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh16
1 files changed, 16 insertions, 0 deletions
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'
}