summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-19 19:50:17 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-21 14:03:56 +0100
commitd82b325bc315d4d1dc4e5489e0c5df1764835540 (patch)
treedfb47037a3b7e9c0d07e5c1c05fb7b3cd1e7c624
parent66f94ca3ecea628be73d37ea5a972783949f955b (diff)
downloadsamba-d82b325bc315d4d1dc4e5489e0c5df1764835540.tar.gz
samba-d82b325bc315d4d1dc4e5489e0c5df1764835540.tar.bz2
samba-d82b325bc315d4d1dc4e5489e0c5df1764835540.zip
s4:torture WINREG - enhance test for "QWORD" type
We need to know how this behaves.
-rw-r--r--source4/torture/rpc/winreg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c
index 15dc1568b7..da46c13ed0 100644
--- a/source4/torture/rpc/winreg.c
+++ b/source4/torture/rpc/winreg.c
@@ -1919,11 +1919,13 @@ static bool test_SetValue_simple(struct dcerpc_binding_handle *b,
{
const char *value_name = TEST_VALUE;
uint32_t value = 0x12345678;
+ uint64_t value2 = 0x12345678;
const char *string = "torture";
DATA_BLOB blob;
enum winreg_Type types[] = {
REG_DWORD,
REG_DWORD_BIG_ENDIAN,
+ REG_QWORD,
REG_BINARY,
REG_SZ,
REG_MULTI_SZ
@@ -1944,6 +1946,9 @@ static bool test_SetValue_simple(struct dcerpc_binding_handle *b,
blob = data_blob_talloc_zero(tctx, 4);
SIVAL(blob.data, 0, value);
break;
+ case REG_QWORD:
+ blob = data_blob_talloc_zero(tctx, 8);
+ SBVAL(blob.data, 0, value2);
case REG_BINARY:
blob = data_blob_string_const("binary_blob");
break;