diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-02-23 09:16:55 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-03-03 17:03:06 +0100 |
commit | 4c92866fac5975434c54a8383e8c24e5dbf87e88 (patch) | |
tree | 92478af5cb8aa88eb89254c3a2402911e954f238 /source4/torture | |
parent | d2763561686d562f52a7d6739526bfd9ee277e3a (diff) | |
download | samba-4c92866fac5975434c54a8383e8c24e5dbf87e88.tar.gz samba-4c92866fac5975434c54a8383e8c24e5dbf87e88.tar.bz2 samba-4c92866fac5975434c54a8383e8c24e5dbf87e88.zip |
s4:torture:smb2:durable-open: skip the open-with-lease test on servers without lease support
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source4/torture')
-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); |