Author: vlendec
Date: 2006-08-05 08:21:31 +0000 (Sat, 05 Aug 2006)
New Revision: 17417

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17417

Log:
Try to fix random failures in the build farm for 3_0.

Volker
Modified:
   branches/SAMBA_4_0/source/torture/basic/disconnect.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/basic/disconnect.c
===================================================================
--- branches/SAMBA_4_0/source/torture/basic/disconnect.c        2006-08-05 
06:48:19 UTC (rev 17416)
+++ branches/SAMBA_4_0/source/torture/basic/disconnect.c        2006-08-05 
08:21:31 UTC (rev 17417)
@@ -155,6 +155,16 @@
                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);

Reply via email to