aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-03-03 12:06:37 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-03-03 12:06:37 +0000
commite2d1dd382a9739c2c9b970f32167d1ae12d2f499 (patch)
tree6a05c716c11ebbf7bf426fe5356b907964a51155 /test
parentfbd65c1f6ae3c802467ab99f4b2fe9c7c084972e (diff)
downloadChibiOS-e2d1dd382a9739c2c9b970f32167d1ae12d2f499.tar.gz
ChibiOS-e2d1dd382a9739c2c9b970f32167d1ae12d2f499.tar.bz2
ChibiOS-e2d1dd382a9739c2c9b970f32167d1ae12d2f499.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7712 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test')
-rw-r--r--test/rt/testthd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/rt/testthd.c b/test/rt/testthd.c
index 5d7e18eff..0f0c88c86 100644
--- a/test/rt/testthd.c
+++ b/test/rt/testthd.c
@@ -196,28 +196,28 @@ static void thd4_execute(void) {
chThdSleepMicroseconds(100000);
test_assert_time_window(1,
time + US2ST(100000),
- time + US2ST(100000) + CH_CFG_ST_TIMEDELTA);
+ time + US2ST(100000) + CH_CFG_ST_TIMEDELTA + 1);
/* Timeouts in milliseconds.*/
time = chVTGetSystemTime();
chThdSleepMilliseconds(100);
test_assert_time_window(2,
time + MS2ST(100),
- time + MS2ST(100) + CH_CFG_ST_TIMEDELTA);
+ time + MS2ST(100) + CH_CFG_ST_TIMEDELTA + 1);
/* Timeouts in seconds.*/
time = chVTGetSystemTime();
chThdSleepSeconds(1);
test_assert_time_window(3,
time + S2ST(1),
- time + S2ST(1) + CH_CFG_ST_TIMEDELTA);
+ time + S2ST(1) + CH_CFG_ST_TIMEDELTA + 1);
/* Absolute timelines.*/
time = chVTGetSystemTime() + MS2ST(100);
chThdSleepUntil(time);
test_assert_time_window(4,
time,
- time + CH_CFG_ST_TIMEDELTA);
+ time + CH_CFG_ST_TIMEDELTA + 1);
}
ROMCONST struct testcase testthd4 = {