summaryrefslogtreecommitdiff
path: root/cesar/bsu/test/utest/src/bsut.c
diff options
context:
space:
mode:
authorlaranjeiro2010-06-04 07:49:54 +0000
committerlaranjeiro2010-06-04 07:49:54 +0000
commit2893046d4b87e780313834fa38522b38128030b5 (patch)
treed3be6155db8c9ba8af509c6c0db9c06397fa6ebf /cesar/bsu/test/utest/src/bsut.c
parentab205eb1c57a7c82f4419e105367043096122661 (diff)
cesar/bsu: fix a unit test
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@7172 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/bsu/test/utest/src/bsut.c')
-rw-r--r--cesar/bsu/test/utest/src/bsut.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cesar/bsu/test/utest/src/bsut.c b/cesar/bsu/test/utest/src/bsut.c
index 7e81f31dd9..1327bf1d81 100644
--- a/cesar/bsu/test/utest/src/bsut.c
+++ b/cesar/bsu/test/utest/src/bsut.c
@@ -661,12 +661,14 @@ test_case_bsu_nek_index (test_t test)
bsu_test_init (&t);
test_begin (test, "Current index")
{
+ uint i;
uint index = bsu_nek_index_current ();
test_fail_unless (index == 0);
index = bsu_nek_index_next ();
test_fail_unless (index == 1);
/* Change NEK index in schedules. */
- t.bsu->sta_avln->bs.schedules.nek_switch [0] = 1;
+ for (i = 0; i < BSU_BEACON_SCHEDULES_MAX; i++)
+ t.bsu->sta_avln->bs.schedules.nek_switch [i] = 1;
index = bsu_nek_index_current ();
test_fail_unless (index == 1);
/* Next index. */