diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-11-09 09:35:45 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:05:41 -0500 |
commit | 77ff35de861388d80146505bc07682c7da11adfe (patch) | |
tree | 1e49ab74335fe9d17e32dbd955920fe168c1904a | |
parent | 4815480bb6ed44081076bac5471267609f7668cf (diff) | |
download | samba-77ff35de861388d80146505bc07682c7da11adfe.tar.gz samba-77ff35de861388d80146505bc07682c7da11adfe.tar.bz2 samba-77ff35de861388d80146505bc07682c7da11adfe.zip |
r3634: - fixed BASE-DISCONNECT test to force the async packets to be sent by
waiting for a chkpath response
- fixed open async send in BASE-DISCONNECT
with these changes BASE-DISCONNECT crashes Samba4, as it was designed
to do. I'll work on a fix :)
(This used to be commit 25e01384647116d8ea0f20a6988fb8fe63218840)
-rw-r--r-- | source4/torture/basic/disconnect.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/torture/basic/disconnect.c b/source4/torture/basic/disconnect.c index b5f6eb5311..683cdb81c8 100644 --- a/source4/torture/basic/disconnect.c +++ b/source4/torture/basic/disconnect.c @@ -59,8 +59,12 @@ static BOOL test_disconnect_open(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) status = smb_raw_open(cli->tree, mem_ctx, &io); CHECK_STATUS(status, NT_STATUS_OK); + io.ntcreatex.in.share_access = 0; req1 = smb_raw_open_send(cli->tree, &io); req2 = smb_raw_open_send(cli->tree, &io); + + status = smbcli_chkpath(cli->tree, "\\"); + CHECK_STATUS(status, NT_STATUS_OK); talloc_free(cli); @@ -106,6 +110,9 @@ static BOOL test_disconnect_lock(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) io.lockx.in.timeout = 3000; req = smb_raw_lock_send(cli->tree, &io); + status = smbcli_chkpath(cli->tree, "\\"); + CHECK_STATUS(status, NT_STATUS_OK); + talloc_free(cli); return True; |