summaryrefslogtreecommitdiff
path: root/cesar/cp/cco/action/test/src/garbage.c
diff options
context:
space:
mode:
authorlaranjeiro2008-11-17 08:45:41 +0000
committerlaranjeiro2008-11-17 08:45:41 +0000
commit8bed1f7edbad5fcf7bb95a0905de871c512345bc (patch)
tree406790c7e5ba68196ca939d88bdf70e8a2e4e577 /cesar/cp/cco/action/test/src/garbage.c
parente6c4d2edad9251d2b2b8adff7f9ba11f19c73ac0 (diff)
cp/cco/action: Update the unit tests.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@3461 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/cp/cco/action/test/src/garbage.c')
-rw-r--r--cesar/cp/cco/action/test/src/garbage.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cesar/cp/cco/action/test/src/garbage.c b/cesar/cp/cco/action/test/src/garbage.c
index faf47b0008..3c0a7dc501 100644
--- a/cesar/cp/cco/action/test/src/garbage.c
+++ b/cesar/cp/cco/action/test/src/garbage.c
@@ -93,15 +93,15 @@ my_thread_entry (cyg_addrword_t data)
printf ("Starting the test, please wait...\n");
for (i = 0; i < TEST_CCO_ACTION_NB_STA; i++)
{
- sta = cp_net_sta_add (&cp, net, 0, i + 1);
+ sta = cp_sta_mgr_sta_add (&cp, net, 0, i + 1);
sta->tei_lease_ms = i;
slab_release (sta);
- sta = cp_net_sta_add (&cp, net, i + 1, i + 1);
- cp_net_sta_set_authenticated (&cp, net, sta, CP_NET_STA_ASSOC);
+ sta = cp_sta_mgr_sta_add (&cp, net, i + 1, i + 1);
+ cp_sta_set_authenticated (&cp, sta, CP_NET_STA_ASSOC);
sta->tei_lease_ms = i;
slab_release (sta);
}
- cp_net_commit_to_dataplane (&cp, net);
+ cp_sta_mgr_commit_to_dataplane (&cp);
date = cyg_current_time () + 600;
while (cyg_current_time () < date)
@@ -111,7 +111,7 @@ my_thread_entry (cyg_addrword_t data)
}
test_fail_if (set_empty (&net->associated_stas) == false);
- test_fail_if (set_empty (&net->unassociated_stas) != false);
+ test_fail_if (set_empty (&net->unassociated_stas) == false);
}
test_end;