Made test suite more tolerant to different system tick values.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14452 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2021-05-31 09:47:39 +00:00
parent 88d44b881c
commit cc30722022
2 changed files with 10 additions and 2 deletions

View File

@ -41,7 +41,11 @@
<value><![CDATA[/*
* Allowed delay in timeout checks.
*/
#define ALLOWED_DELAY TIME_MS2I(2)
#if CH_CFG_ST_TIMEDELTA == 0
#define ALLOWED_DELAY 2
#else
#define ALLOWED_DELAY CH_CFG_ST_TIMEDELTA
#endif
/*
* Maximum number of test threads.

View File

@ -59,7 +59,11 @@ extern "C" {
/*
* Allowed delay in timeout checks.
*/
#define ALLOWED_DELAY TIME_MS2I(2)
#if CH_CFG_ST_TIMEDELTA == 0
#define ALLOWED_DELAY 2
#else
#define ALLOWED_DELAY CH_CFG_ST_TIMEDELTA
#endif
/*
* Maximum number of test threads.