summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorZachary Loafman <zachary.loafman@isilon.com>2009-11-18 00:21:44 +0000
committerTim Prouty <tprouty@samba.org>2010-06-14 17:13:44 -0700
commit2977c659ea1c2b647b8afd4c83cf82eac7e3ec2f (patch)
treee9a29df61cd331137c9bade5f62fb5a133748886 /source4/torture
parentdd2fad01fd50f2617bd8ee43e1329e6c0f942e54 (diff)
downloadsamba-2977c659ea1c2b647b8afd4c83cf82eac7e3ec2f.tar.gz
samba-2977c659ea1c2b647b8afd4c83cf82eac7e3ec2f.tar.bz2
samba-2977c659ea1c2b647b8afd4c83cf82eac7e3ec2f.zip
s4 torture: RAW-WRITE should check lockread_supported
Signed-off-by: Tim Prouty <tprouty@samba.org>
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/raw/write.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/torture/raw/write.c b/source4/torture/raw/write.c
index a1fde16611..9a2161146e 100644
--- a/source4/torture/raw/write.c
+++ b/source4/torture/raw/write.c
@@ -243,6 +243,11 @@ static bool test_writex(struct torture_context *tctx,
buf = talloc_zero_array(tctx, uint8_t, maxsize);
+ if (!cli->transport->negotiate.lockread_supported) {
+ printf("Server does not support writeunlock - skipping\n");
+ return true;
+ }
+
if (!torture_setup_dir(cli, BASEDIR)) {
return false;
}