1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

r16447: print the result of talloc_set_parent()

trying to find the bug on HPUX

metze
(This used to be commit 3db6bd8715)
This commit is contained in:
Stefan Metzmacher 2006-06-21 20:28:51 +00:00 committed by Gerald (Jerry) Carter
parent 816c055123
commit 3cd96fd4f9

View File

@ -351,6 +351,7 @@ static BOOL test_misc(void)
void *root, *p1;
char *p2;
double *d;
const char *name;
printf("TESTING MISCELLANEOUS\n");
@ -387,10 +388,10 @@ static BOOL test_misc(void)
CHECK_BLOCKS(p1, 1);
CHECK_BLOCKS(root, 2);
talloc_set_name(p1, "my name is %s", "foo");
name = 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(my name is foo) - '%s'\n",
talloc_get_name(p1));
printf("failed: wrong name after talloc_set_name(my name is foo) - '%s'=>'%s'\n",
(name?name:"NULL"), talloc_get_name(p1));
return False;
}
CHECK_BLOCKS(p1, 2);