summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-17 19:29:51 +0200
committerStefan Metzmacher <metze@samba.org>2011-09-18 05:33:10 +0200
commit79043f84d1916196fc163d4cacd10235301a3283 (patch)
tree81981b928ae37c701165dd73ee482373e49957df /source3/torture
parenta0dcbf8d628ac19861648f914f576c1addce7b79 (diff)
downloadsamba-79043f84d1916196fc163d4cacd10235301a3283.tar.gz
samba-79043f84d1916196fc163d4cacd10235301a3283.tar.bz2
samba-79043f84d1916196fc163d4cacd10235301a3283.zip
s3:SMB2-BASIC: test smb2cli_flush()
metze
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/test_smb2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/torture/test_smb2.c b/source3/torture/test_smb2.c
index 513930613a..5d3bc76016 100644
--- a/source3/torture/test_smb2.c
+++ b/source3/torture/test_smb2.c
@@ -79,6 +79,12 @@ bool run_smb2_basic(int dummy)
return false;
}
+ status = smb2cli_flush(cli, fid_persistent, fid_volatile);
+ if (!NT_STATUS_IS_OK(status)) {
+ printf("smb2cli_flush returned %s\n", nt_errstr(status));
+ return false;
+ }
+
status = smb2cli_read(cli, 0x10000, 0, fid_persistent,
fid_volatile, 2, 0,
talloc_tos(), &result, &nread);