aboutsummaryrefslogtreecommitdiffstats
path: root/test/rt
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-06-16 11:25:32 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-06-16 11:25:32 +0000
commit6ec0150086ee3aab792ced643e0b7b5dc237f6f1 (patch)
treee274084d1d6e40f1da1a554e295d374221e3318a /test/rt
parent1011f0300e0bd43b953b4dae0e96e47386c4e467 (diff)
downloadChibiOS-6ec0150086ee3aab792ced643e0b7b5dc237f6f1.tar.gz
ChibiOS-6ec0150086ee3aab792ced643e0b7b5dc237f6f1.tar.bz2
ChibiOS-6ec0150086ee3aab792ced643e0b7b5dc237f6f1.zip
Small fix in the RT test suite.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9631 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/rt')
-rw-r--r--test/rt/configuration.xml2
-rw-r--r--test/rt/source/test/test_sequence_003.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/rt/configuration.xml b/test/rt/configuration.xml
index 83b6e1bf2..0244205d7 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) + 1,
+ time + MS2ST(1000) + CH_CFG_ST_TIMEDELTA,
"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 31b586481..bf5b4c73e 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) + 1,
+ time + MS2ST(1000) + CH_CFG_ST_TIMEDELTA,
"out of time window");
test_assert(NULL == tr1, "not NULL");
test_assert(MSG_TIMEOUT == msg, "wrong returned message");