s4:torture:winreg: improve error messages in test_HKLM_wellknown
authorMichael Adam <obnox@samba.org>
Fri, 21 May 2010 08:56:37 +0000 (10:56 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 21 May 2010 09:24:27 +0000 (11:24 +0200)
source4/torture/rpc/winreg.c

index 79ec9e525c859e8ac00b05c412447d70f0f4e5af..370bd6771c4fe676973b49f115c762eeadd625dc 100644 (file)
@@ -2093,11 +2093,11 @@ static bool test_HKLM_wellknown(struct torture_context *tctx,
        torture_assert(tctx, test_QueryValue_full(b, tctx, &newhandle, VALUE_CURRENT_VERSION, true),
                "failed to query current version");
        torture_assert(tctx, test_QueryValue_full(b, tctx, &newhandle, "IDoNotExist", false),
        torture_assert(tctx, test_QueryValue_full(b, tctx, &newhandle, VALUE_CURRENT_VERSION, true),
                "failed to query current version");
        torture_assert(tctx, test_QueryValue_full(b, tctx, &newhandle, "IDoNotExist", false),
-               "failed to query current version");
+               "succeeded to query nonexistent value");
        torture_assert(tctx, test_QueryValue_full(b, tctx, &newhandle, NULL, false),
        torture_assert(tctx, test_QueryValue_full(b, tctx, &newhandle, NULL, false),
-               "test_QueryValue_full for NULL value failed");
+               "succeeded to query value with NULL name");
        torture_assert(tctx, test_QueryValue_full(b, tctx, &newhandle, "", false),
        torture_assert(tctx, test_QueryValue_full(b, tctx, &newhandle, "", false),
-               "test_QueryValue_full for \"\" value failed");
+               "succeeded to query nonexistent default value (\"\")");
 
        torture_assert(tctx, test_CloseKey(b, tctx, &newhandle),
                "failed to close current version key");
 
        torture_assert(tctx, test_CloseKey(b, tctx, &newhandle),
                "failed to close current version key");