torture:smb2: skip replay3 if server does not support Multi-Channel
authorMichael Adam <obnox@samba.org>
Mon, 29 Feb 2016 00:51:23 +0000 (01:51 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 29 Feb 2016 22:10:14 +0000 (23:10 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/torture/smb2/replay.c

index 4b3f5697fe2dcf5fcebfcaa79547581c0fbdf569..71062c06208713a16f6ce7ebcfbafbc534dd35f8 100644 (file)
@@ -487,12 +487,20 @@ static bool test_replay3(struct torture_context *tctx, struct smb2_tree *tree1)
        struct smb2_session *session1_2 = NULL;
        uint32_t share_capabilities;
        bool share_is_so;
+       uint32_t server_capabilities;
 
        if (smbXcli_conn_protocol(transport1->conn) < PROTOCOL_SMB3_00) {
                torture_skip(tctx, "SMB 3.X Dialect family required for "
                                   "Replay tests\n");
        }
 
+       server_capabilities = smb2cli_conn_server_capabilities(
+                                       tree1->session->transport->conn);
+       if (!(server_capabilities & SMB2_CAP_MULTI_CHANNEL)) {
+               torture_skip(tctx,
+                            "Server does not support multi-channel.");
+       }
+
        share_capabilities = smb2cli_tcon_capabilities(tree1->smbXcli);
        share_is_so = share_capabilities & SMB2_SHARE_CAP_SCALEOUT;