From 6e94a6753025fca537e2d2981d1c01d7be44308f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 16 Nov 2005 06:39:57 +0000 Subject: r11738: test larger read/write calls. If you run smbtorture with -X (to enable 'dangerous' tests) then it does a write of 160k, which causes vista to blue screen. Otherwise it does a 120k write which works fine. (This used to be commit b4c5d7d0173b94ade4c16d47ef774ad9f3c17bc8) --- source4/torture/smb2/connect.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'source4/torture') diff --git a/source4/torture/smb2/connect.c b/source4/torture/smb2/connect.c index 077c873d08..34f8d5aa9f 100644 --- a/source4/torture/smb2/connect.c +++ b/source4/torture/smb2/connect.c @@ -72,9 +72,16 @@ static NTSTATUS torture_smb2_write(struct smb2_tree *tree, struct smb2_handle ha struct smb2_read r; NTSTATUS status; DATA_BLOB data; + int i; - data = data_blob_talloc(tree, NULL, 700); - generate_random_buffer(data.data, data.length); + if (lp_parm_bool(-1, "torture", "dangerous", False)) { + data = data_blob_talloc(tree, NULL, 160000); + } else { + data = data_blob_talloc(tree, NULL, 120000); + } + for (i=0;i