summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Loafman <zachary.loafman@isilon.com>2009-11-18 00:29:21 +0000
committerTim Prouty <tprouty@samba.org>2009-12-03 20:21:22 -0800
commit2dc5bd19d42f31e3d9f54108bd147c4371634a50 (patch)
treee83b3406ce0709eeacba86669abaa7b0bafd0286
parentf26a500d9ff854734decdcb196136dc8cc19eb4a (diff)
downloadsamba-2dc5bd19d42f31e3d9f54108bd147c4371634a50.tar.gz
samba-2dc5bd19d42f31e3d9f54108bd147c4371634a50.tar.bz2
samba-2dc5bd19d42f31e3d9f54108bd147c4371634a50.zip
s4 torture: Parameterize WRITE_AND_CLOSE support
Signed-off-by: Tim Prouty <tprouty@samba.org>
-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) {