s4-smbtorture: more work on test values WINREG test.
authorGünther Deschner <gd@samba.org>
Wed, 23 Jun 2010 12:59:27 +0000 (14:59 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 23 Jun 2010 13:35:41 +0000 (15:35 +0200)
Guenther

source4/torture/rpc/winreg.c

index eec8de7c952680443651ae27de3263feec522e07..968afc0ed30721e8fcc5b906c3cc122b6c4c6717 100644 (file)
@@ -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),