r22886: Workaround to make RAW-NOTIFY a bit more reliable against Samba3. It
authorVolker Lendecke <vlendec@samba.org>
Tue, 15 May 2007 08:01:30 +0000 (08:01 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:52:29 +0000 (14:52 -0500)
might take a bit for events to propagate from one to another connection,
in particular with a process per connection.

source/torture/raw/notify.c

index 74f33f0dbd9b485c9ca2b2bd5c4afde05f12905c..841238ea3da56ee021b2bf2374e0daf400198bd9 100644 (file)
@@ -137,6 +137,7 @@ static BOOL test_notify_dir(struct smbcli_state *cli, struct smbcli_state *cli2,
        smbcli_rmdir(cli2->tree, BASEDIR "\\subdir-name");
        smbcli_mkdir(cli2->tree, BASEDIR "\\subdir-name");
        smbcli_rmdir(cli2->tree, BASEDIR "\\subdir-name");
+       msleep(200);
        req = smb_raw_changenotify_send(cli->tree, &notify);
        status = smb_raw_changenotify_recv(req, mem_ctx, &notify);
        CHECK_STATUS(status, NT_STATUS_OK);