summaryrefslogtreecommitdiff
path: root/cesar
diff options
context:
space:
mode:
authorlaranjeiro2010-05-18 13:03:11 +0000
committerlaranjeiro2010-05-18 13:03:11 +0000
commit86ccfc367bf4e0cc5185db1e528b24914d40291d (patch)
tree886b00ac5228d857cce22eed2ce6f35c556f29ee /cesar
parent28450d622dcc18b2f0c009926177e17bc00eab26 (diff)
cesar/cp/sta/mgr: fix unit tests
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@7109 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar')
-rw-r--r--cesar/cp/sta/mgr/test/src/net_list_test.c1
-rw-r--r--cesar/cp/sta/mgr/test/src/sta-test.c1
-rw-r--r--cesar/cp/sta/mgr/test/src/sta_mgr.c3
3 files changed, 5 insertions, 0 deletions
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;
}