git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8ddbe4
)
talloc/testsuite: use talloc_set_log_fn() and log to stdout
author
Stefan Metzmacher
<metze@samba.org>
Wed, 29 Jul 2009 20:00:05 +0000
(22:00 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 21 Aug 2009 07:58:21 +0000
(09:58 +0200)
metze
lib/talloc/testsuite.c
patch
|
blob
|
history
diff --git
a/lib/talloc/testsuite.c
b/lib/talloc/testsuite.c
index ad1ae63462e86ed97b881738be9a54a68d7c6259..8845d960c15423ac409ca083babeb3790eb70eb4 100644
(file)
--- a/
lib/talloc/testsuite.c
+++ b/
lib/talloc/testsuite.c
@@
-119,6
+119,11
@@
static void test_abort_stop(void)
talloc_set_abort_fn(NULL);
}
+static void test_log_stdout(const char *message)
+{
+ fprintf(stdout, "%s", message);
+}
+
/*
test references
*/
@@
-1128,6
+1133,7
@@
static bool test_pool(void)
static void test_reset(void)
{
+ talloc_set_log_fn(test_log_stdout);
test_abort_stop();
talloc_disable_null_tracking();
talloc_enable_null_tracking();