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
This commit is contained in:
parent
1011f0300e
commit
6ec0150086
|
@ -815,7 +815,7 @@ time = chVTGetSystemTimeX();
|
||||||
msg = chThdSuspendTimeoutS(&tr1, MS2ST(1000));
|
msg = chThdSuspendTimeoutS(&tr1, MS2ST(1000));
|
||||||
chSysUnlock();
|
chSysUnlock();
|
||||||
test_assert_time_window(time + MS2ST(1000),
|
test_assert_time_window(time + MS2ST(1000),
|
||||||
time + MS2ST(1000) + 1,
|
time + MS2ST(1000) + CH_CFG_ST_TIMEDELTA,
|
||||||
"out of time window");
|
"out of time window");
|
||||||
test_assert(NULL == tr1, "not NULL");
|
test_assert(NULL == tr1, "not NULL");
|
||||||
test_assert(MSG_TIMEOUT == msg, "wrong returned message");]]></value>
|
test_assert(MSG_TIMEOUT == msg, "wrong returned message");]]></value>
|
||||||
|
|
|
@ -103,7 +103,7 @@ static void test_003_001_execute(void) {
|
||||||
msg = chThdSuspendTimeoutS(&tr1, MS2ST(1000));
|
msg = chThdSuspendTimeoutS(&tr1, MS2ST(1000));
|
||||||
chSysUnlock();
|
chSysUnlock();
|
||||||
test_assert_time_window(time + MS2ST(1000),
|
test_assert_time_window(time + MS2ST(1000),
|
||||||
time + MS2ST(1000) + 1,
|
time + MS2ST(1000) + CH_CFG_ST_TIMEDELTA,
|
||||||
"out of time window");
|
"out of time window");
|
||||||
test_assert(NULL == tr1, "not NULL");
|
test_assert(NULL == tr1, "not NULL");
|
||||||
test_assert(MSG_TIMEOUT == msg, "wrong returned message");
|
test_assert(MSG_TIMEOUT == msg, "wrong returned message");
|
||||||
|
|
Loading…
Reference in New Issue