summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-11-16 06:39:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:19 -0500
commit6e94a6753025fca537e2d2981d1c01d7be44308f (patch)
tree84eeff968d998526847b456f214a2b2d5651ad02 /source4
parentb16543648e3cee12d6daf6d2d01c57fe1d13d6eb (diff)
downloadsamba-6e94a6753025fca537e2d2981d1c01d7be44308f.tar.gz
samba-6e94a6753025fca537e2d2981d1c01d7be44308f.tar.bz2
samba-6e94a6753025fca537e2d2981d1c01d7be44308f.zip
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)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/smb2/connect.c11
1 files changed, 9 insertions, 2 deletions
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<data.length;i++) {
+ data.data[i] = i;
+ }
ZERO_STRUCT(w);
w.in.buffer_code = 0x31;