diff options
Diffstat (limited to 'source4/torture/raw/close.c')
-rw-r--r-- | source4/torture/raw/close.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/source4/torture/raw/close.c b/source4/torture/raw/close.c index 41c6956c25..1a3b5f28be 100644 --- a/source4/torture/raw/close.c +++ b/source4/torture/raw/close.c @@ -144,24 +144,27 @@ BOOL torture_raw_close(struct torture_context *torture) printf("testing flush\n"); smbcli_close(cli->tree, fnum); - io_flush.flush.in.file.fnum = fnum; + io_flush.flush.level = RAW_FLUSH_FLUSH; + io_flush.flush.in.file.fnum = fnum; status = smb_raw_flush(cli->tree, &io_flush); CHECK_STATUS(status, NT_STATUS_INVALID_HANDLE); - io_flush.flush.in.file.fnum = 0xffff; + io_flush.flush_all.level = RAW_FLUSH_ALL; status = smb_raw_flush(cli->tree, &io_flush); CHECK_STATUS(status, NT_STATUS_OK); REOPEN; - io_flush.flush.in.file.fnum = fnum; + io_flush.flush.level = RAW_FLUSH_FLUSH; + io_flush.flush.in.file.fnum = fnum; status = smb_raw_flush(cli->tree, &io_flush); CHECK_STATUS(status, NT_STATUS_OK); printf("Testing SMBexit\n"); smb_raw_exit(cli->session); - io_flush.flush.in.file.fnum = fnum; + io_flush.flush.level = RAW_FLUSH_FLUSH; + io_flush.flush.in.file.fnum = fnum; status = smb_raw_flush(cli->tree, &io_flush); CHECK_STATUS(status, NT_STATUS_INVALID_HANDLE); |