summaryrefslogtreecommitdiff
path: root/lib/talloc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-07-29 22:00:05 +0200
committerAndrew Tridgell <tridge@samba.org>2009-08-24 16:29:58 +1000
commited384e8aac36fa768741ff7589e76b233064c586 (patch)
treed663277f02937f87852353c2aa20fda9c9558380 /lib/talloc
parente40f3144f2a3f8e7aebf009a4cddb9f463292c1c (diff)
downloadsamba-ed384e8aac36fa768741ff7589e76b233064c586.tar.gz
samba-ed384e8aac36fa768741ff7589e76b233064c586.tar.bz2
samba-ed384e8aac36fa768741ff7589e76b233064c586.zip
talloc/testsuite: use talloc_set_log_fn() and log to stdout
metze
Diffstat (limited to 'lib/talloc')
-rw-r--r--lib/talloc/testsuite.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/talloc/testsuite.c b/lib/talloc/testsuite.c
index ad1ae63462..8845d960c1 100644
--- 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();