diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-07-11 14:14:00 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-07-11 14:14:00 +0000 |
commit | e97ed74364ea0173d9fdf145b7e5f04a8cf21b01 (patch) | |
tree | 0e4bfd123223ecfd94a5f565a4b7ba5b9b85a1ed /test/rt | |
parent | 8d4c6ef5b8c18ce3415ec60711296b90fb4da487 (diff) | |
download | ChibiOS-e97ed74364ea0173d9fdf145b7e5f04a8cf21b01.tar.gz ChibiOS-e97ed74364ea0173d9fdf145b7e5f04a8cf21b01.tar.bz2 ChibiOS-e97ed74364ea0173d9fdf145b7e5f04a8cf21b01.zip |
Fixed a test case.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9701 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/rt')
-rw-r--r-- | test/rt/configuration.xml | 2 | ||||
-rw-r--r-- | test/rt/source/test/test_sequence_003.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/rt/configuration.xml b/test/rt/configuration.xml index 0244205d7..f678671dc 100644 --- a/test/rt/configuration.xml +++ b/test/rt/configuration.xml @@ -815,7 +815,7 @@ time = chVTGetSystemTimeX(); msg = chThdSuspendTimeoutS(&tr1, MS2ST(1000)); chSysUnlock(); test_assert_time_window(time + MS2ST(1000), - time + MS2ST(1000) + CH_CFG_ST_TIMEDELTA, + time + MS2ST(1000) + CH_CFG_ST_TIMEDELTA + 1, "out of time window"); test_assert(NULL == tr1, "not NULL"); test_assert(MSG_TIMEOUT == msg, "wrong returned message");]]></value>
diff --git a/test/rt/source/test/test_sequence_003.c b/test/rt/source/test/test_sequence_003.c index bf5b4c73e..3f29a30c7 100644 --- a/test/rt/source/test/test_sequence_003.c +++ b/test/rt/source/test/test_sequence_003.c @@ -103,7 +103,7 @@ static void test_003_001_execute(void) { msg = chThdSuspendTimeoutS(&tr1, MS2ST(1000));
chSysUnlock();
test_assert_time_window(time + MS2ST(1000),
- time + MS2ST(1000) + CH_CFG_ST_TIMEDELTA,
+ time + MS2ST(1000) + CH_CFG_ST_TIMEDELTA + 1,
"out of time window");
test_assert(NULL == tr1, "not NULL");
test_assert(MSG_TIMEOUT == msg, "wrong returned message");
|