mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
s4 torture: Parameterize WRITE_AND_CLOSE support
Signed-off-by: Tim Prouty <tprouty@samba.org>
This commit is contained in:
parent
f26a500d9f
commit
2dc5bd19d4
@ -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;
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user