diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-06-21 20:28:51 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:09:15 -0500 |
commit | 3cd96fd4f9d19ebd12c849ba6997ee8ea35a9646 (patch) | |
tree | b1a64814377c7ef5ac6baf22fa351fc93b809b19 /source4/lib/talloc | |
parent | 816c055123ab2706ec09811e6375e6e8d8c8dd13 (diff) | |
download | samba-3cd96fd4f9d19ebd12c849ba6997ee8ea35a9646.tar.gz samba-3cd96fd4f9d19ebd12c849ba6997ee8ea35a9646.tar.bz2 samba-3cd96fd4f9d19ebd12c849ba6997ee8ea35a9646.zip |
r16447: print the result of talloc_set_parent()
trying to find the bug on HPUX
metze
(This used to be commit 3db6bd87158cd615a3e35009598863758099595b)
Diffstat (limited to 'source4/lib/talloc')
-rw-r--r-- | source4/lib/talloc/testsuite.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/lib/talloc/testsuite.c b/source4/lib/talloc/testsuite.c index 10810f30e9..477d9a5848 100644 --- a/source4/lib/talloc/testsuite.c +++ b/source4/lib/talloc/testsuite.c @@ -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); |