From 2dc5bd19d42f31e3d9f54108bd147c4371634a50 Mon Sep 17 00:00:00 2001 From: Zachary Loafman Date: Wed, 18 Nov 2009 00:29:21 +0000 Subject: s4 torture: Parameterize WRITE_AND_CLOSE support Signed-off-by: Tim Prouty --- source4/torture/raw/write.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/torture/raw') diff --git a/source4/torture/raw/write.c b/source4/torture/raw/write.c index 31cbb98a88..ff82dc19d8 100644 --- a/source4/torture/raw/write.c +++ b/source4/torture/raw/write.c @@ -573,6 +573,11 @@ static bool test_writeclose(struct torture_context *tctx, buf = talloc_zero_array(tctx, uint8_t, maxsize); + if (!torture_setting_bool(tctx, "writeclose_support", true)) { + printf("Server does not support writeclose - skipping\n"); + return true; + } + if (!torture_setup_dir(cli, BASEDIR)) { return false; } -- cgit