Fixed a test case.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9701 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
8d4c6ef5b8
commit
e97ed74364
|
@ -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) + CH_CFG_ST_TIMEDELTA,
|
time + MS2ST(1000) + CH_CFG_ST_TIMEDELTA + 1,
|
||||||
"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) + CH_CFG_ST_TIMEDELTA,
|
time + MS2ST(1000) + CH_CFG_ST_TIMEDELTA + 1,
|
||||||
"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