s4-smbtorture: add some more multiple_values_tests to RPC-WINREG.
authorGünther Deschner <gd@samba.org>
Wed, 30 Jun 2010 15:13:14 +0000 (17:13 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 30 Jun 2010 19:46:07 +0000 (21:46 +0200)
Guenther

source4/torture/rpc/winreg.c

index 0960440ef98c4b9a7d79380f716db6a2faa4a25b..66cad9e0d907efee005050a46091a4ac956e45ae 100644 (file)
@@ -2385,7 +2385,6 @@ static bool test_HKLM_wellknown(struct torture_context *tctx,
                                struct policy_handle *handle)
 {
        struct policy_handle newhandle;
-       const char **values;
        int i;
        struct {
                const char *values[3];
@@ -2417,6 +2416,18 @@ static bool test_HKLM_wellknown(struct torture_context *tctx,
                        .values[2] = VALUE_CURRENT_VERSION,
                        .num_values = 3,
                        .existing_value = true
+               },{
+                       .values[0] = VALUE_CURRENT_VERSION,
+                       .values[1] = NULL,
+                       .values[2] = VALUE_SYSTEM_ROOT,
+                       .num_values = 3,
+                       .existing_value = false
+               },{
+                       .values[0] = VALUE_CURRENT_VERSION,
+                       .values[1] = "",
+                       .values[2] = VALUE_SYSTEM_ROOT,
+                       .num_values = 3,
+                       .existing_value = false
                },{
                        .values[0] = "IDoNotExist",
                        .values[1] = NULL,