diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/smb2/durable_open.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/torture/smb2/durable_open.c b/source4/torture/smb2/durable_open.c index a46eb74a4e..a95a7d2182 100644 --- a/source4/torture/smb2/durable_open.c +++ b/source4/torture/smb2/durable_open.c @@ -255,6 +255,12 @@ static bool test_one_durable_open_open2(struct torture_context *tctx, struct smb2_create io; struct smb2_lease ls; uint64_t lease; + uint32_t caps; + + caps = smb2cli_conn_server_capabilities(tree->session->transport->conn); + if (!(caps & SMB2_CAP_LEASING)) { + torture_skip(tctx, "leases are not supported"); + } smb2_util_unlink(tree, fname); |