summaryrefslogtreecommitdiff
path: root/cesar/bsu/test/utest/src/bsut.c
diff options
context:
space:
mode:
authorNélio Laranjeiro2011-03-31 15:10:06 +0200
committerNélio Laranjeiro2011-04-01 11:23:56 +0200
commit2fb83160c66f511846221a80b769e2facc3558bc (patch)
tree0dc4820c35344012f25fc46c116464a092be2f85 /cesar/bsu/test/utest/src/bsut.c
parent4348e37eb13a0865b2ce18cb1e84d419f645c129 (diff)
cesar/bsu: avoid to provide future schedules to the CA, closes #2333
Diffstat (limited to 'cesar/bsu/test/utest/src/bsut.c')
-rw-r--r--cesar/bsu/test/utest/src/bsut.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/cesar/bsu/test/utest/src/bsut.c b/cesar/bsu/test/utest/src/bsut.c
index 6d18ca9740..68b894f581 100644
--- a/cesar/bsu/test/utest/src/bsut.c
+++ b/cesar/bsu/test/utest/src/bsut.c
@@ -610,6 +610,15 @@ test_case_bsu_activate (test_t test)
bsu_activate (false);
test_fail_unless (t.bsu->activate == false);
test_fail_unless (t.bsu->sta_avln == &t.bsu->poweron);
+ /* Reactivate the BSU. */
+ bsu_aclf_beacon_period_start_date (t.bsu->aclf, bpsd, COUNT (bpsd));
+ bsu_activate (true);
+ for (i = 0; i < t.ca.nb_beacon_periods; i++)
+ test_fail_unless (t.ca.beacon_periods[i].start_date != bpsd[i]);
+ /* Verify that new bpsd start date are for now. */
+ bsu_aclf_beacon_period_start_date (t.bsu->aclf, bpsd, COUNT (bpsd));
+ for (i = 0; i < t.ca.nb_beacon_periods; i++)
+ test_fail_unless (t.ca.beacon_periods[i].start_date == bpsd[i]);
}
test_end;
bsu_test_uninit (&t);