summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-06-23 14:59:27 +0200
committerGünther Deschner <gd@samba.org>2010-06-23 15:35:41 +0200
commit2dc50ec44c4e9af144733f028122970be83332ba (patch)
tree33ca4afec9f8a3b3b4271ea9cead36e27a7838c0 /source4/torture
parent740c97b513dfb43342eda700362f4b59de5d5b83 (diff)
downloadsamba-2dc50ec44c4e9af144733f028122970be83332ba.tar.gz
samba-2dc50ec44c4e9af144733f028122970be83332ba.tar.bz2
samba-2dc50ec44c4e9af144733f028122970be83332ba.zip
s4-smbtorture: more work on test values WINREG test.
Guenther
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/winreg.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c
index eec8de7c95..968afc0ed3 100644
--- a/source4/torture/rpc/winreg.c
+++ b/source4/torture/rpc/winreg.c
@@ -2014,7 +2014,13 @@ static bool test_SetValue_values(struct dcerpc_binding_handle *b,
"torture,value",
"torture;value",
"torture/value",
- "torture\\value"
+ "torture\\value",
+ "torture_value_name",
+ "torture value name",
+ "torture,value,name",
+ "torture;value;name",
+ "torture/value/name",
+ "torture\\value\\name",
};
int i;
@@ -2026,7 +2032,9 @@ static bool test_SetValue_values(struct dcerpc_binding_handle *b,
uint32_t w_size, w_length;
uint8_t *w_data;
- blob = data_blob_string_const("binary_blob");
+ blob = data_blob_talloc(tctx, NULL, 32);
+
+ generate_random_buffer(blob.data, 32);
torture_assert(tctx,
test_SetValue(b, tctx, handle, values[i], REG_BINARY, blob.data, blob.length),