selftest: set ad_dc process model to prefork
authorGary Lockyer <gary@catalyst.net.nz>
Tue, 5 Sep 2017 00:31:52 +0000 (12:31 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 19 Oct 2017 03:33:10 +0000 (05:33 +0200)
Set the process model for ad_dc to prefork, so that the pre-fork gets
exercised during self test.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
selftest/target/Samba4.pm

index ea23c66c3dcf643bc9fc21df80f430be062b984f..8b2af7ff063054c0fbd875fdb2f77cf67ea596b1 100755 (executable)
@@ -619,6 +619,8 @@ sub provision_raw_step1($$)
        dreplsrv:periodic_startup_interval = 0
        dsdb:schema update allowed = yes
 
+        prefork children = 4
+
         vfs objects = dfs_samba4 acl_xattr fake_acls xattr_tdb streams_depot
 
         idmap_ldb:use rfc2307=yes
@@ -2575,7 +2577,7 @@ sub setup_ad_dc_no_ntlm($$)
                return undef;
        }
 
-       if (not defined($self->check_or_start($env, "single"))) {
+       if (not defined($self->check_or_start($env, "prefork"))) {
            return undef;
        }