summaryrefslogtreecommitdiff
path: root/cesar/mac/sar/test/utest/host/src/stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/mac/sar/test/utest/host/src/stats.c')
-rw-r--r--cesar/mac/sar/test/utest/host/src/stats.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/cesar/mac/sar/test/utest/host/src/stats.c b/cesar/mac/sar/test/utest/host/src/stats.c
index 5ef73b43f8..ddae276031 100644
--- a/cesar/mac/sar/test/utest/host/src/stats.c
+++ b/cesar/mac/sar/test/utest/host/src/stats.c
@@ -475,10 +475,18 @@ test_sar_stats_rx_do (test_t test, bool bcast)
sar_stats_t sar_stats;
sar_test_sar_stats_compute (pb_final_first, &sar_stats);
test_fail_unless (sar_stats.rx_pb_count
+ == t.ce->total_pb_count);
+ test_fail_unless (sar_stats.rx_pb_crc_error_count
+ == t.ce->false_pb_count);
+ test_fail_unless (sar_stats.ber_sum == t.ce->ber_sum);
+
+#if CONFIG_STATS
+ test_fail_unless (sar_stats.rx_pb_count
== t.sar->stats.rx_pb_count);
test_fail_unless (sar_stats.rx_pb_crc_error_count
== t.sar->stats.rx_pb_crc_error_count);
test_fail_unless (sar_stats.ber_sum == t.sar->stats.ber_sum);
+#endif
}
test_end;
blk_release_desc_range ((blk_t*) pb_final_first,