From 0c739e8cde82c22e7258061b324281d083c41a4e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 5 Aug 2006 08:21:31 +0000 Subject: r17417: Try to fix random failures in the build farm for 3_0. Volker (This used to be commit 5cffd35fecb85e3c1407f6e6d91e846b17a7c917) --- source4/torture/basic/disconnect.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); -- cgit