when the compilation flag CH_CFG_USE_TIMESTAMP is set to FALSE, the test suite does still try to compile those tests (rt_test_sequence_004), resulting in compiler errors, obviously. The fix, however, is very simple:
In test/rt/source/test/rt_test_sequence_004.c a guard needs to be added:
Code: Select all
#if (CH_CFG_USE_TIMESTAMP == TRUE) || defined(__DOXYGEN__)
/* content of the file */
#endif /* CH_CFG_USE_TIMESTAMP == TRUE */
Furthermore, in test/rt/source/test/rt_test_root.c, test sequence 004 needs to be guarded as well:
Code: Select all
/**
* @brief Array of test sequences.
*/
const testsequence_t * const rt_test_suite_array[] = {
...
#if (CH_CFG_USE_TIMESTAMP == TRUE)
&rt_test_sequence_004,
#endif
...
};
I am currently porting my project* from 20.3.x to 21.11.x, so I don't know whether the issue was already present in 21.6.x. Also, I did not check the NIL side of things.
Cheers
Thomas
* there are still several patches waiting to get merged