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 +++++ source4/torture/smbtorture.c | 1 + 2 files changed, 6 insertions(+) (limited to 'source4/torture') 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; } diff --git a/source4/torture/smbtorture.c b/source4/torture/smbtorture.c index d02ec2961b..9c1304fc16 100644 --- a/source4/torture/smbtorture.c +++ b/source4/torture/smbtorture.c @@ -549,6 +549,7 @@ int main(int argc,char *argv[]) lp_set_cmdline(cmdline_lp_ctx, "torture:deny_dos_support", "false"); lp_set_cmdline(cmdline_lp_ctx, "torture:deny_fcb_support", "false"); lp_set_cmdline(cmdline_lp_ctx, "torture:read_support", "false"); + lp_set_cmdline(cmdline_lp_ctx, "torture:writeclose_support", "false"); } if (max_runtime) { -- cgit