test suite priority issue
Posted: Mon Oct 30, 2017 1:30 pm
Hi,
I just encountered a minor issue when calling the ChibiOS test suite (function 'test_execute()' in ch_test.c) from a thread with high priority. Several tests (e.g. test_sequence_002) increase the calling thread priority, which fails if the original priority is already too high. I think this should either be detected beforehand and commented with an according message instead of just failing the test, or the tests should react dynamically (e.g. lower the priority instead of increasing it).
As I said, this is no too bad issue, but it took me a while to understand why the tests failed although the system seemed to work fine
Best regards,
Thomas
I just encountered a minor issue when calling the ChibiOS test suite (function 'test_execute()' in ch_test.c) from a thread with high priority. Several tests (e.g. test_sequence_002) increase the calling thread priority, which fails if the original priority is already too high. I think this should either be detected beforehand and commented with an according message instead of just failing the test, or the tests should react dynamically (e.g. lower the priority instead of increasing it).
As I said, this is no too bad issue, but it took me a while to understand why the tests failed although the system seemed to work fine
Best regards,
Thomas