\r
#define mainTIMER_TEST_PERIOD ( 50 )\r
\r
+/*\r
+ * Exercises code that is not otherwise covered by the standard demo/test\r
+ * tasks.\r
+ */\r
+extern BaseType_t xRunCodeCoverageTestAdditions( void );\r
+\r
/* Task function prototypes. */\r
static void prvCheckTask( void *pvParameters );\r
\r
timer. */\r
prvDemonstrateTimerQueryFunctions();\r
\r
-\r
/* If xMutexToDelete has not already been deleted, then delete it now.\r
This is done purely to demonstrate the use of, and test, the\r
vSemaphoreDelete() macro. Care must be taken not to delete a semaphore\r
\r
/* Exit after a fixed time so code coverage results are written to the\r
disk. */\r
- #if( configCOVERAGE_TEST == 1 )\r
+ #if( projCOVERAGE_TEST == 1 )\r
{\r
- const TickType_t xMaxRunTime = pdMS_TO_TICKS( 60000UL );\r
+ const TickType_t xMaxRunTime = pdMS_TO_TICKS( 30000UL );\r
+\r
+ /* Exercise code not otherwise executed by standard demo/test tasks. */\r
+ if( xRunCodeCoverageTestAdditions() != pdPASS )\r
+ {\r
+ pcStatusMessage = "Code coverage additions failed.\r\n";\r
+ }\r
\r
- if( xTaskGetTickCount() >= xMaxRunTime )\r
+ if( ( xTaskGetTickCount() - configINITIAL_TICK_COUNT ) >= xMaxRunTime )\r
{\r
- exit( 0 );\r
+ vTaskEndScheduler();\r
}\r
}\r
#endif\r