summaryrefslogtreecommitdiff
path: root/source4/torture/raw
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 /source4/torture/raw
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>
Diffstat (limited to 'source4/torture/raw')
-rw-r--r--source4/torture/raw/write.c5
1 files changed, 5 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;
}