summaryrefslogtreecommitdiff
path: root/cesar
diff options
context:
space:
mode:
authorlaranjeiro2008-10-17 07:50:33 +0000
committerlaranjeiro2008-10-17 07:50:33 +0000
commit0a5e494833903cb7e55eed94c6c92614716ab2a6 (patch)
tree87b274d6ac71945ee14a2b290a16eedefdaf4f83 /cesar
parent31a9e2637492d57b868bcf0e342c9d5ab8f13e90 (diff)
cp/beacon: Update the tests since the validation of the schedules.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@3306 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar')
-rw-r--r--cesar/cp/beacon/test/src/schedules.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/cesar/cp/beacon/test/src/schedules.c b/cesar/cp/beacon/test/src/schedules.c
index bc5ac5bffc..0fe2cffbbf 100644
--- a/cesar/cp/beacon/test/src/schedules.c
+++ b/cesar/cp/beacon/test/src/schedules.c
@@ -14,6 +14,7 @@
*/
#include "common/std.h"
#include "lib/test.h"
+#include "mac/common/ntb.h"
#include "cp/cco/bw/bw_lib_alloc.h"
#include "cp/beacon/beacon.h"
@@ -222,7 +223,10 @@ test_suite__cco (void)
int
main (void)
{
+ uint phy;
+ mac_config_t mac_config;
test_init (test, 0, NULL);
+ mac_ntb_init ((phy_t *) &phy, &mac_config);
test_suite__station ();
test_suite__cco ();
@@ -255,9 +259,9 @@ ca_alloc_update_beacon_periods (ca_t *ctx,
uint nb_alloc;
u32 end_offset_tck;
test_fail_if (beacon_periods_nb != 3);
- test_fail_if (beacon_periods[0].start_date != 1002511);
- test_fail_if (beacon_periods[1].start_date != 2002511);
- test_fail_if (beacon_periods[2].start_date != 3002521);
+ test_fail_if (beacon_periods[0].start_date != 1002506);
+ test_fail_if (beacon_periods[1].start_date != 2002506);
+ test_fail_if (beacon_periods[2].start_date != 3002516);
ca_sched = ca_alloc_get_schedule (ctx, 0);
nb_alloc = ca_sched->allocations_nb-1;
@@ -274,9 +278,9 @@ ca_alloc_update_beacon_periods (ca_t *ctx,
uint nb_alloc;
u32 end_offset_tck;
test_fail_if (beacon_periods_nb != 3);
- test_fail_if (beacon_periods[0].start_date != 1002511);
- test_fail_if (beacon_periods[1].start_date != 2002506);
- test_fail_if (beacon_periods[2].start_date != 3002516);
+ test_fail_if (beacon_periods[0].start_date != 1002506);
+ test_fail_if (beacon_periods[1].start_date != 2002501);
+ test_fail_if (beacon_periods[2].start_date != 3002511);
ca_sched = ca_alloc_get_schedule (ctx, 0);
nb_alloc = ca_sched->allocations_nb-1;