mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-09 06:25:16 +00:00
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
1 changed files with 6 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue