git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d276356
)
s4:torture:smb2:durable-open: skip the open-with-lease test on servers without lease...
author
Stefan Metzmacher
<metze@samba.org>
Thu, 23 Feb 2012 08:16:55 +0000
(09:16 +0100)
committer
Michael Adam
<obnox@samba.org>
Sat, 3 Mar 2012 16:03:06 +0000
(17:03 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
source4/torture/smb2/durable_open.c
patch
|
blob
|
history
diff --git
a/source4/torture/smb2/durable_open.c
b/source4/torture/smb2/durable_open.c
index a46eb74a4e9fb7a6cc59043a2813af6136771812..a95a7d2182b4255c79fef08eed7fe421c95ecd30 100644
(file)
--- 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);