r14935: try to avoid a race condition in the recursion test
authorAndrew Tridgell <tridge@samba.org>
Thu, 6 Apr 2006 02:01:37 +0000 (02:01 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:00:19 +0000 (14:00 -0500)
source/torture/raw/notify.c

index cdca2428472b4357c1b204c45835134d4a3d2f81..7a69442e66ad31ec5be2f8612d0f46b4b5e2d342 100644 (file)
@@ -315,6 +315,7 @@ static BOOL test_notify_recursive(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
 
        notify.in.completion_filter = 0;
        notify.in.recursive = True;
+       msleep(10);
        req1 = smb_raw_changenotify_send(cli->tree, &notify);
 
        smbcli_rmdir(cli->tree, BASEDIR "\\subdir-name\\subname1-r");
@@ -870,7 +871,6 @@ BOOL torture_raw_notify(struct torture_context *torture)
                return False;
        }
 
-
        ret &= test_notify_dir(cli, mem_ctx);
        ret &= test_notify_mask(cli, mem_ctx);
        ret &= test_notify_recursive(cli, mem_ctx);