From 86ccfc367bf4e0cc5185db1e528b24914d40291d Mon Sep 17 00:00:00 2001 From: laranjeiro Date: Tue, 18 May 2010 13:03:11 +0000 Subject: cesar/cp/sta/mgr: fix unit tests git-svn-id: svn+ssh://pessac/svn/cesar/trunk@7109 017c9cb6-072f-447c-8318-d5b54f68fe89 --- cesar/cp/sta/mgr/test/src/net_list_test.c | 1 + cesar/cp/sta/mgr/test/src/sta-test.c | 1 + cesar/cp/sta/mgr/test/src/sta_mgr.c | 3 +++ 3 files changed, 5 insertions(+) (limited to 'cesar') diff --git a/cesar/cp/sta/mgr/test/src/net_list_test.c b/cesar/cp/sta/mgr/test/src/net_list_test.c index 831f45f152..996eef9153 100644 --- a/cesar/cp/sta/mgr/test/src/net_list_test.c +++ b/cesar/cp/sta/mgr/test/src/net_list_test.c @@ -256,6 +256,7 @@ test_case_network_slot_usage (test_t test) cp_t cp; cp_net_t *net; + lib_rnd_init (&cp.rnd, 0x3421); cp_sta_mgr_init (&cp); test_case_begin (test, "Getting the slot usage"); diff --git a/cesar/cp/sta/mgr/test/src/sta-test.c b/cesar/cp/sta/mgr/test/src/sta-test.c index 6cf34bbe43..d80659f307 100644 --- a/cesar/cp/sta/mgr/test/src/sta-test.c +++ b/cesar/cp/sta/mgr/test/src/sta-test.c @@ -74,6 +74,7 @@ test_case_cp_sta_own_data__set_and_get_tei (test_t test) cl_t cl; sar_t sar; + lib_rnd_init (&cp.rnd, 0x432); cp.mac_config = &mac_config; cp_sta_mgr_init (&cp); diff --git a/cesar/cp/sta/mgr/test/src/sta_mgr.c b/cesar/cp/sta/mgr/test/src/sta_mgr.c index 05044ccd5b..dbba188470 100644 --- a/cesar/cp/sta/mgr/test/src/sta_mgr.c +++ b/cesar/cp/sta/mgr/test/src/sta_mgr.c @@ -1695,6 +1695,8 @@ test_case__cp_sta_mgr_change_snid (test_t test) cp.mac_config = &mac_config; cp.cl = &cl; cp.sar = &sar; + cp.mac_store = mac_store_init (); + sar.mac_store = cp.mac_store; net = cp_sta_mgr_add_avln (&cp, 1, 1); @@ -1715,6 +1717,7 @@ test_case__cp_sta_mgr_change_snid (test_t test) test_fail_unless (net->snid == 0x3); cp_sta_mgr_uninit (&cp); + mac_store_uninit (sar.mac_store); } test_end; } -- cgit v1.2.3