summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorGary Lockyer <gary@catalyst.net.nz>2018-09-18 11:21:40 +1200
committerAndrew Bartlett <abartlet@samba.org>2018-11-30 11:42:44 +0100
commit2381b4ff6794ba514cca57d3995459bc2cef8352 (patch)
tree2d24f96a189420fd856cf4721426745a3d53c687 /source4
parentb3490049574d2e9651a402d6335fa23cefb182c5 (diff)
downloadsamba-2381b4ff6794ba514cca57d3995459bc2cef8352.tar.gz
s4 smbd standard tests: limit forked processes
Tests to confirm the standard process model honours the smbd.conf variable "max smbd processes", when forking a new process on accept. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/selftest/tests.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py
index 972f65307d8..575c14b8be2 100755
--- a/source4/selftest/tests.py
+++ b/source4/selftest/tests.py
@@ -1249,3 +1249,12 @@ planoldpythontestsuite("preforkrestartdc:local",
extra_args=['-U"$USERNAME%$PASSWORD"'],
name="samba.tests.prefork_restart",
py3_compatible=True)
+planoldpythontestsuite("proclimitdc:local",
+ "samba.tests.process_limits",
+ extra_path=[
+ os.path.join(srcdir(), 'python/samba/tests')],
+ extra_args=['-U"$USERNAME%$PASSWORD"'],
+ environ={'CLIENT_IP': '127.0.0.11',
+ 'SOCKET_WRAPPER_DEFAULT_IFACE': 11},
+ name="samba.tests.process_limits",
+ py3_compatible=True)