summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/raw/write.c5
-rw-r--r--source4/torture/smbtorture.c1
2 files changed, 6 insertions, 0 deletions
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) {