summaryrefslogtreecommitdiff
path: root/cesar/bsu/test/utest/src/bsut.c
diff options
context:
space:
mode:
authorlaranjeiro2010-05-17 09:30:30 +0000
committerlaranjeiro2010-05-17 09:30:30 +0000
commit7f359021ac816d07b2d4c942c7871b9016366f49 (patch)
tree821beebc973777011ee643831764dd347def2397 /cesar/bsu/test/utest/src/bsut.c
parentd861f4338f507bb3471ed881f42d00763f893ab3 (diff)
cesar/{bsu,bsu/aclf}: return bsu_aclf_t context on bsu_aclf_init
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@7031 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/bsu/test/utest/src/bsut.c')
-rw-r--r--cesar/bsu/test/utest/src/bsut.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cesar/bsu/test/utest/src/bsut.c b/cesar/bsu/test/utest/src/bsut.c
index 8649621c5f..629bbcd206 100644
--- a/cesar/bsu/test/utest/src/bsut.c
+++ b/cesar/bsu/test/utest/src/bsut.c
@@ -151,7 +151,7 @@ test_case_bsu_timer_event (test_t test)
bsu_test_avln_create (&t, t.bsu->sta_avln);
bsu_test_avln_create (&t, &cmp_avln);
for (i = 0; i < BSU_ACLF_BPSD_NB; i++)
- t.bsu->aclf.bpsd[i] = i * BSU_ACLF_BP_50HZ_TCK;
+ t.bsu->aclf->bpsd[i] = i * BSU_ACLF_BP_50HZ_TCK;
t.bsu->is_sta = true;
for (j = 0; j < 10; j++)
{
@@ -159,7 +159,7 @@ test_case_bsu_timer_event (test_t test)
bsu_avln_schedules_beacon_not_received (t.bsu, &cmp_avln);
for (i = 0; i < BSU_ACLF_BPSD_NB; i++)
test_fail_unless (
- t.bsu->aclf.bpsd[i] = (i+j+1) * BSU_ACLF_BP_50HZ_TCK);
+ t.bsu->aclf->bpsd[i] = (i+j+1) * BSU_ACLF_BP_50HZ_TCK);
for (i = 0; i < cmp_avln.bs.schedules.ps.nb; i++)
{
test_fail_unless (t.bsu->sta_avln->bs.schedules.ps.ps[i].pscd
@@ -181,7 +181,7 @@ test_case_bsu_timer_event (test_t test)
bsu_test_init (&t);
bsu_test_avln_create (&t, &cmp_avln);
for (i = 0; i < BSU_ACLF_BPSD_NB; i++)
- t.bsu->aclf.bpsd[i] = i * BSU_ACLF_BP_50HZ_TCK;
+ t.bsu->aclf->bpsd[i] = i * BSU_ACLF_BP_50HZ_TCK;
bsu_test_create_beacon (&t, &beacon);
/* First case, update beacon in time. */
bsu_test_upper_layer_beacon_received_init (&t);
@@ -199,7 +199,7 @@ test_case_bsu_timer_event (test_t test)
blk_release (mfs);
/* Second case, beacon not updated. */
bsu_test_upper_layer_beacon_received_init (&t);
- t.bsu->beacon->beacon_period_start_date = t.bsu->aclf.bpsd[0] - 1;
+ t.bsu->beacon->beacon_period_start_date = t.bsu->aclf->bpsd[0] - 1;
for (i = 0; i < 7; i++)
{
bsu_avln_schedules_beacon_not_received (t.bsu, &cmp_avln);