1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

s4:torture WINREG - enhance test for "QWORD" type

We need to know how this behaves.
This commit is contained in:
Matthias Dieter Wallnöfer 2010-03-19 19:50:17 +01:00
parent 66f94ca3ec
commit d82b325bc3

View File

@ -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;