svn commit: samba r16447 - in branches/SAMBA_4_0/source/lib/talloc:
.
metze at samba.org
metze at samba.org
Wed Jun 21 20:28:51 GMT 2006
Author: metze
Date: 2006-06-21 20:28:51 +0000 (Wed, 21 Jun 2006)
New Revision: 16447
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16447
Log:
print the result of talloc_set_parent()
trying to find the bug on HPUX
metze
Modified:
branches/SAMBA_4_0/source/lib/talloc/testsuite.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/talloc/testsuite.c
===================================================================
--- branches/SAMBA_4_0/source/lib/talloc/testsuite.c 2006-06-21 19:28:24 UTC (rev 16446)
+++ branches/SAMBA_4_0/source/lib/talloc/testsuite.c 2006-06-21 20:28:51 UTC (rev 16447)
@@ -351,6 +351,7 @@
void *root, *p1;
char *p2;
double *d;
+ const char *name;
printf("TESTING MISCELLANEOUS\n");
@@ -387,10 +388,10 @@
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);
More information about the samba-cvs
mailing list