mirror of
https://github.com/samba-team/samba.git
synced 2025-12-05 12:23:50 +03:00
r16445: print out values
metze
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
e7d339d496
commit
972634b202
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user