summaryrefslogtreecommitdiff
path: root/cesar/bsu/test/utest/src
diff options
context:
space:
mode:
authorlaranjeiro2010-06-22 13:07:26 +0000
committerlaranjeiro2010-06-22 13:07:26 +0000
commit85011ff1152556d72614d4b349f4ae7f182ef5bc (patch)
tree0fa7dd4a5f0cb084de9b5def84e9317ff23e3084 /cesar/bsu/test/utest/src
parent0f30c4c3c8acc54976de0fa21ebf661cd8018fc5 (diff)
cesar/bsu: add trace compilation for test
fix a unsatisfactory trace. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@7251 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/bsu/test/utest/src')
-rw-r--r--cesar/bsu/test/utest/src/tests.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/cesar/bsu/test/utest/src/tests.c b/cesar/bsu/test/utest/src/tests.c
index c185da0f8b..92b69ec709 100644
--- a/cesar/bsu/test/utest/src/tests.c
+++ b/cesar/bsu/test/utest/src/tests.c
@@ -18,6 +18,14 @@
#include <string.h>
#include "bsu/inc/context.h"
+static int
+bsu_trace_buffer_dbg_dump_callback (void *user, const char *text,
+ uint text_size)
+{
+ return 0;
+}
+
+
static void
bsu_test_upper_layer_beacon_received (void *ctx, pb_beacon_t *beacon,
bsu_params_t *bparams)
@@ -44,6 +52,7 @@ void
bsu_test_init (bsu_test_t *ctx)
{
dbg_assert (ctx);
+ trace_init ();
ctx->mac_config.tei = 0x0;
ctx->mac_config.sta_mac_address = 0x123456789abcull;
ctx->mac_store = mac_store_init ();
@@ -68,8 +77,10 @@ void
bsu_test_uninit (bsu_test_t *ctx)
{
dbg_assert (ctx);
+ trace_bundle_dump_all ("dbg", bsu_trace_buffer_dbg_dump_callback, NULL);
bsu_uninit (ctx->bsu);
mac_store_uninit (ctx->mac_store);
+ trace_uninit ();
}
static inline void