OS test: Sporadic test now emits a message if the max_repl configuration is too small for the test to work reliably
This commit is contained in:
parent
46c3158b85
commit
70f1ee9dcd
@ -182,6 +182,12 @@ void sporadic_test(void)
|
||||
pthread_attr_t attr;
|
||||
int ret;
|
||||
|
||||
#if CONFIG_SCHED_SPORADIC_MAXREPL < 5
|
||||
printf("sporadic_test: CONFIG_SCHED_SPORADIC_MAXREPL is small: %d\n",
|
||||
CONFIG_SCHED_SPORADIC_MAXREPL);
|
||||
printf(" -- There will some errors in the the replenishment interval\n");
|
||||
#endif
|
||||
|
||||
printf("sporadic_test: Initializing semaphore to 0\n");
|
||||
sem_init(&g_sporadic_sem, 0, 0);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user