Re: [PATCH] libtest: Add T_thread_switch_record()

2020-08-10 Thread Gedare Bloom
On Mon, Aug 10, 2020 at 4:04 AM Sebastian Huber wrote: > > > On 10/08/2020 12:01, Sebastian Huber wrote: > > +#if defined(__GNUC__) || __STDC_VERSION__ >= 199409L > > +#define T_ZERO_LENGH_ARRAY > > +#define T_ZERO_LENGH_ARRAY_EXTENSION(n) (n) > > +#else > > +#define T_ZERO_LENGH_ARRAY 0 > This sh

Re: [PATCH] libtest: Add T_thread_switch_record()

2020-08-10 Thread Sebastian Huber
On 10/08/2020 12:01, Sebastian Huber wrote: +#if defined(__GNUC__) || __STDC_VERSION__ >= 199409L +#define T_ZERO_LENGH_ARRAY +#define T_ZERO_LENGH_ARRAY_EXTENSION(n) (n) +#else +#define T_ZERO_LENGH_ARRAY 0 This should be #define T_ZERO_LENGH_ARRAY 1 +#define T_ZERO_LENGH_ARRAY_EXTENSION(n

[PATCH] libtest: Add T_thread_switch_record()

2020-08-10 Thread Sebastian Huber
Add support to record thread switch events. This can be use to check that a blocking operation results in the expected sequence of thread switches. Update #3199. --- cpukit/include/rtems/test.h | 45 +++ cpukit/libtest/t-test-thread-switch.c | 165 ++ tests