diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-03-18 08:34:59 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-03-18 08:34:59 +0000 |
commit | cc04b48370602f941a752308bf3a6819170292cc (patch) | |
tree | 6fe18c123087696f7dc9126bf87e03663f7ae87b /test/nil/source | |
parent | a5dac3c84ba32e747ad325128235c429a070c438 (diff) | |
download | ChibiOS-cc04b48370602f941a752308bf3a6819170292cc.tar.gz ChibiOS-cc04b48370602f941a752308bf3a6819170292cc.tar.bz2 ChibiOS-cc04b48370602f941a752308bf3a6819170292cc.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9132 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/nil/source')
-rw-r--r-- | test/nil/source/test/test_sequence_004.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/nil/source/test/test_sequence_004.c b/test/nil/source/test/test_sequence_004.c index 4ee372d21..6cf37b289 100644 --- a/test/nil/source/test/test_sequence_004.c +++ b/test/nil/source/test/test_sequence_004.c @@ -134,7 +134,7 @@ static void test_004_001_execute(void) { test_assert(msg1 == MSG_OK, "wrong wake-up message");
test_emit_token(msg2);
}
- test_assert_sequence("ABCDE", "wrong get sequence");
+ test_assert_sequence("ABCD", "wrong get sequence");
}
/* Posting and then fetching one more message, no errors expected.*/
@@ -150,8 +150,8 @@ static void test_004_001_execute(void) { start, semaphore counters are checked.*/
test_set_step(7);
{
- test_assert_lock(chMBGetFreeCountI(&mb1) == 0, "still empty");
- test_assert_lock(chMBGetUsedCountI(&mb1) == MB_SIZE, "not full");
+ test_assert_lock(chMBGetFreeCountI(&mb1) == MB_SIZE, "not empty");
+ test_assert_lock(chMBGetUsedCountI(&mb1) == 0, "still full");
test_assert(mb1.buffer == mb1.wrptr, "write pointer not aligned to base");
test_assert(mb1.buffer == mb1.rdptr, "read pointer not aligned to base");
}
@@ -259,7 +259,7 @@ static void test_004_002_execute(void) { test_assert(msg1 == MSG_OK, "wrong wake-up message");
test_emit_token(msg2);
}
- test_assert_sequence("ABCDE", "wrong get sequence");
+ test_assert_sequence("ABCD", "wrong get sequence");
}
/* Posting and then fetching one more message, no errors expected.*/
@@ -275,8 +275,8 @@ static void test_004_002_execute(void) { start, semaphore counters are checked.*/
test_set_step(7);
{
- test_assert_lock(chMBGetFreeCountI(&mb1) == 0, "still empty");
- test_assert_lock(chMBGetUsedCountI(&mb1) == MB_SIZE, "not full");
+ test_assert_lock(chMBGetFreeCountI(&mb1) == MB_SIZE, "not empty");
+ test_assert_lock(chMBGetUsedCountI(&mb1) == 0, "still full");
test_assert(mb1.buffer == mb1.wrptr, "write pointer not aligned to base");
test_assert(mb1.buffer == mb1.rdptr, "read pointer not aligned to base");
}
|