From 2977c659ea1c2b647b8afd4c83cf82eac7e3ec2f Mon Sep 17 00:00:00 2001 From: Zachary Loafman Date: Wed, 18 Nov 2009 00:21:44 +0000 Subject: s4 torture: RAW-WRITE should check lockread_supported Signed-off-by: Tim Prouty --- source4/torture/raw/write.c | 5 +++++ 1 file changed, 5 insertions(+) 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; } -- cgit