summaryrefslogtreecommitdiff
path: root/cesar/ce
diff options
context:
space:
mode:
authorThierry Carré2013-06-07 11:24:49 +0200
committerThierry Carré2013-06-07 11:30:35 +0200
commitb3cbdcd64d372dab2c83d7b2ea69c57a2169b459 (patch)
tree79f28df9b52523a0858ecc45358c7efbb64d72b0 /cesar/ce
parentcbd52afe58bed45064ebc6ec4a7edb019083b442 (diff)
parentb6a5dec44ddfd59cf652adce3b0df8207efb41c1 (diff)
Merge branch 't4007_utest_fix' into eoc-drv
Diffstat (limited to 'cesar/ce')
-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;