summaryrefslogtreecommitdiff
path: root/cesar/bsu/test/utest/src/bsut.c
diff options
context:
space:
mode:
authorNélio Laranjeiro2011-02-02 11:40:30 +0100
committerNélio Laranjeiro2011-02-02 11:40:30 +0100
commit46f30dc0ad8c042ade5855e701b895c08c7d6765 (patch)
tree5bbfe925b3df6c9a9c80faa69db66be09d2b89bb /cesar/bsu/test/utest/src/bsut.c
parentff293e1f9512e45537a17fbbd10930766d6029e6 (diff)
cesar/bsu: avoid valgrind error, refs #2256
Diffstat (limited to 'cesar/bsu/test/utest/src/bsut.c')
-rw-r--r--cesar/bsu/test/utest/src/bsut.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cesar/bsu/test/utest/src/bsut.c b/cesar/bsu/test/utest/src/bsut.c
index 3f5e0991f4..190a776aff 100644
--- a/cesar/bsu/test/utest/src/bsut.c
+++ b/cesar/bsu/test/utest/src/bsut.c
@@ -152,6 +152,7 @@ test_case_bsu_process (test_t test)
brx.snid = 0x2;
b = bsu_beacon_write (&beacon, BSU_BEACON_TYPE_CENTRAL, &t.mac_config,
&btx);
+ b->phy_pb.pb_rx.pb_measurement.crc_error = false;
t.bsu->sta_avln->beacon.beacon_period_start_date =
phy_date () - BSU_ACLF_BP_50HZ_TCK - 1000;
bsu_beacon_t *bbeacon = bsu_beacon_process (t.bsu, b, &brx);
@@ -195,6 +196,7 @@ test_case_bsu_process (test_t test)
brx.snid = 0x3;
b = bsu_beacon_write (&beacon, BSU_BEACON_TYPE_DISCOVER,
&t.mac_config, &btx);
+ b->phy_pb.pb_rx.pb_measurement.crc_error = false;
t.bsu->sta_avln->beacon.beacon_period_start_date =
phy_date () - BSU_ACLF_BP_50HZ_TCK - 1000;
bsu_beacon_t *bprocessed = bsu_beacon_process (t.bsu, b, &brx);
@@ -205,6 +207,7 @@ test_case_bsu_process (test_t test)
blk_release (bprocessed);
b = bsu_beacon_write (&beacon, BSU_BEACON_TYPE_CENTRAL,
&t.mac_config, &btx);
+ b->phy_pb.pb_rx.pb_measurement.crc_error = false;
bprocessed = bsu_beacon_process (t.bsu, b, &brx);
test_fail_unless (bprocessed);
avln = bsu_avln_get (t.bsu, beacon.vf.nid, brx.snid);
@@ -271,6 +274,7 @@ test_case_bsu_process_sta_is_cco (test_t test)
brx.snid = 0x2;
b = bsu_beacon_write (&beacon, BSU_BEACON_TYPE_CENTRAL, &t.mac_config,
&btx);
+ b->phy_pb.pb_rx.pb_measurement.crc_error = false;
bsu_beacon_t *bbeacon = bsu_beacon_process (t.bsu, b, &brx);
test_fail_unless (t.bsu->beacon_nb_recv [BSU_BEACON_TYPE_CENTRAL]
== 1);