summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Carré2013-06-07 10:58:00 +0200
committerThierry Carré2013-06-07 11:30:20 +0200
commitb6a5dec44ddfd59cf652adce3b0df8207efb41c1 (patch)
treeea67ac41d3d0c4e2514c74fe6c5e6feaf797e2d3
parent30a065ee84a4babc64a60df90a15507666fabfbd (diff)
cesar/ce/rx/test: fix unit test, refs #4007
The 'test_fail_if' added previously, must be activated only when we have some interval repetition. Currently, there is many interval in AV, and only one interval in EoC.
-rw-r--r--cesar/ce/rx/test/src/test_rx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cesar/ce/rx/test/src/test_rx.c b/cesar/ce/rx/test/src/test_rx.c
index 626e1de4bd..b157851412 100644
--- a/cesar/ce/rx/test/src/test_rx.c
+++ b/cesar/ce/rx/test/src/test_rx.c
@@ -400,10 +400,10 @@ test_ce_rx_get_snr (test_t t)
* the NSR of the interval tonemap should be used. */
test_fail_if (ce_rx_get_nsr (ce_rx, tei, 0, 0x42, &ber) !=
(void*) 0xDEADCAFE);
- /* Same result with ce_rx_bl_intervals_fsm_count_ requested. */
- test_fail_if (ce_rx_get_nsr (
- ce_rx, tei, ce_rx_bl_intervals_fsm_count_, 0x42, &ber) !=
- (void*) 0xDEADCAFE);
+ if (ce_rx_bl_intervals_repetition_count_ > 1)
+ /* Same result with ce_rx_bl_intervals_fsm_count_ requested. */
+ test_fail_if ((void *)0xDEADCAFE != ce_rx_get_nsr (
+ ce_rx, tei, ce_rx_bl_intervals_fsm_count_, 0x42, &ber));
/* Clean all the state of the modified interval for this test. */
sta->ce_rx_bt.noise_nrj_blk_count = 0;
sta->intervals = NULL;