From 70f1ee9dcdf3ca30e212123fcd986993b876582c Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 26 Jul 2015 15:34:33 -0600 Subject: [PATCH] OS test: Sporadic test now emits a message if the max_repl configuration is too small for the test to work reliably --- examples/ostest/sporadic.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/ostest/sporadic.c b/examples/ostest/sporadic.c index 3bdea8391..2cd9a92a4 100644 --- a/examples/ostest/sporadic.c +++ b/examples/ostest/sporadic.c @@ -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);