summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-02-29 03:57:34 +0100
committerStefan Metzmacher <metze@samba.org>2012-02-29 05:49:10 +0100
commitc0dac92b429b014c4c3d0778800d2baaf2610892 (patch)
tree084d244bf08f4245f0ef70b5250cd1a5e540c82f /source3/torture
parent51a15e9d312f7e73b708f6e63452809c100fbd7a (diff)
downloadsamba-c0dac92b429b014c4c3d0778800d2baaf2610892.tar.gz
samba-c0dac92b429b014c4c3d0778800d2baaf2610892.tar.bz2
samba-c0dac92b429b014c4c3d0778800d2baaf2610892.zip
s3:torture/test_smb2: expect FILE_CLOSED on invalid handles in SMB2-MULTI-CHANNEL
metze
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/test_smb2.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/torture/test_smb2.c b/source3/torture/test_smb2.c
index 83d59ffbeb..804b542bfd 100644
--- a/source3/torture/test_smb2.c
+++ b/source3/torture/test_smb2.c
@@ -1018,13 +1018,15 @@ bool run_smb2_multi_channel(int dummy)
}
status = smb2cli_flush(cli2, fid_persistent, fid_volatile);
- if (!NT_STATUS_IS_OK(status)) {
+ if (!NT_STATUS_EQUAL(status, NT_STATUS_FILE_CLOSED)) {
printf("smb2cli_flush returned %s\n", nt_errstr(status));
+ return false;
}
status = smb2cli_flush(cli1, fid_persistent, fid_volatile);
- if (!NT_STATUS_IS_OK(status)) {
+ if (!NT_STATUS_EQUAL(status, NT_STATUS_FILE_CLOSED)) {
printf("smb2cli_flush returned %s\n", nt_errstr(status));
+ return false;
}
return true;