r16445: print out values
authorStefan Metzmacher <metze@samba.org>
Wed, 21 Jun 2006 19:26:48 +0000 (19:26 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:09:15 +0000 (14:09 -0500)
metze
(This used to be commit 972634b2021e60b27d68b0fd6d49ef95398d92e2)

source4/lib/talloc/testsuite.c

index 334aa3c2e1b0d5bf9f60806c9c0b2e2d267bb555..10810f30e96a2e9afd091eed0d03a6a4ea74a505 100644 (file)
@@ -389,7 +389,8 @@ static BOOL test_misc(void)
 
        talloc_set_name(p1, "my name is %s", "foo");
        if (strcmp(talloc_get_name(p1), "my name is foo") != 0) {
-               printf("failed: wrong name after talloc_set_name\n");
+               printf("failed: wrong name after talloc_set_name(my name is foo) - '%s'\n",
+                       talloc_get_name(p1));
                return False;
        }
        CHECK_BLOCKS(p1, 2);
@@ -397,7 +398,8 @@ static BOOL test_misc(void)
 
        talloc_set_name_const(p1, NULL);
        if (strcmp(talloc_get_name(p1), "UNNAMED") != 0) {
-               printf("failed: wrong name after talloc_set_name(NULL)\n");
+               printf("failed: wrong name after talloc_set_name(NULL) - '%s'\n",
+                       talloc_get_name(p1));
                return False;
        }
        CHECK_BLOCKS(p1, 2);