mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
torture:smb2: skip replay5 test if server does not support persistent handles
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
95835b9280
commit
cd3ee2a2aa
@ -877,6 +877,7 @@ static bool test_replay5(struct torture_context *tctx, struct smb2_tree *tree)
|
||||
uint32_t share_capabilities;
|
||||
bool share_is_ca;
|
||||
bool share_is_so;
|
||||
uint32_t server_capabilities;
|
||||
const char *fname = BASEDIR "\\replay5.dat";
|
||||
struct smb2_transport *transport = tree->session->transport;
|
||||
struct smbcli_options options = tree->session->transport->options;
|
||||
@ -888,6 +889,13 @@ static bool test_replay5(struct torture_context *tctx, struct smb2_tree *tree)
|
||||
"Replay tests\n");
|
||||
}
|
||||
|
||||
server_capabilities = smb2cli_conn_server_capabilities(
|
||||
tree->session->transport->conn);
|
||||
if (!(server_capabilities & SMB2_CAP_PERSISTENT_HANDLES)) {
|
||||
torture_skip(tctx,
|
||||
"Server does not support persistent handles.");
|
||||
}
|
||||
|
||||
share_capabilities = smb2cli_tcon_capabilities(tree->smbXcli);
|
||||
|
||||
share_is_ca = share_capabilities & SMB2_SHARE_CAP_CONTINUOUS_AVAILABILITY;
|
||||
|
Loading…
x
Reference in New Issue
Block a user