s4-torture: Disable the security descriptor tests.
authorAndreas Schneider <asn@samba.org>
Fri, 21 May 2010 10:49:23 +0000 (12:49 +0200)
committerAndreas Schneider <asn@samba.org>
Fri, 21 May 2010 13:59:10 +0000 (15:59 +0200)
source4/torture/rpc/winreg.c

index 89d003df4ac7a6d090262efc673052c042af046e..bbe72be7cad3570d4e3a327bb9570fe934d9dd74 100644 (file)
@@ -2386,6 +2386,7 @@ static bool test_key_base(struct torture_context *tctx,
        bool created3 = false;
        const char *test_key1;
        const char *test_key3;
+       const char *test_subkey;
 
        test_Cleanup(b, tctx, handle, base_key);
 
@@ -2459,9 +2460,11 @@ static bool test_key_base(struct torture_context *tctx,
                        created3 = true;
                }
 
+               test_subkey = talloc_asprintf(tctx, "%s\\%s", test_key3, TEST_SUBKEY);
+
                if (created3) {
-                       if (test_CreateKey(b, tctx, handle, TEST_SUBKEY, NULL)) {
-                               if (!test_DeleteKey(b, tctx, handle, TEST_SUBKEY)) {
+                       if (test_CreateKey(b, tctx, handle, test_subkey, NULL)) {
+                               if (!test_DeleteKey(b, tctx, handle, test_subkey)) {
                                        torture_comment(tctx, "DeleteKey failed\n");
                                        ret = false;
                                }
@@ -2490,6 +2493,8 @@ static bool test_key_base_sd(struct torture_context *tctx,
        const char *test_key2;
        const char *test_key4;
 
+       torture_skip(tctx, "security descriptor test disabled\n");
+
        if (torture_setting_bool(tctx, "samba3", false) ||
            torture_setting_bool(tctx, "samba4", false)) {
                torture_skip(tctx, "skipping security descriptor tests against Samba");