summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-08-05 08:21:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:15:23 -0500
commit0c739e8cde82c22e7258061b324281d083c41a4e (patch)
tree7b815385df6265b03811d7fbec072b8196118e91 /source4
parent07cb71ba502cc1403de74f4f02e5479772b6a249 (diff)
downloadsamba-0c739e8cde82c22e7258061b324281d083c41a4e.tar.gz
samba-0c739e8cde82c22e7258061b324281d083c41a4e.tar.bz2
samba-0c739e8cde82c22e7258061b324281d083c41a4e.zip
r17417: Try to fix random failures in the build farm for 3_0.
Volker (This used to be commit 5cffd35fecb85e3c1407f6e6d91e846b17a7c917)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/basic/disconnect.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/torture/basic/disconnect.c b/source4/torture/basic/disconnect.c
index 4712dfdda9..92cb828606 100644
--- a/source4/torture/basic/disconnect.c
+++ b/source4/torture/basic/disconnect.c
@@ -155,6 +155,16 @@ BOOL torture_disconnect(struct torture_context *torture)
if (!torture_open_connection(&cli, 0)) {
return False;
}
+
+ if (lp_parm_bool(-1, "target", "samba3", False)) {
+ /*
+ * In Samba3 it might happen that the old smbd from
+ * test_disconnect_lock is not scheduled before the
+ * new process comes in. Try to get rid of the random
+ * failures in the build farm.
+ */
+ msleep(200);
+ }
}
smb_raw_exit(cli->session);