]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/WIN32-MingW/code_coverage_additions.c
Added uxTaskGetStackHighWaterMark2(), which is the same as uxTaskGetStackHighWaterMar...
[freertos] / FreeRTOS / Demo / WIN32-MingW / code_coverage_additions.c
index 739005d5d48d1580f8215ce0c885694b69fa1e7b..5aafe110b95e392d343fc10b1fa893deb9f7cfee 100644 (file)
@@ -381,6 +381,11 @@ const uint32_t ulRunTimeTollerance = ( uint32_t ) 0xfff;
                xReturn = pdFAIL;\r
        }\r
 \r
+       if( uxTaskGetStackHighWaterMark2( NULL ) != ( configSTACK_DEPTH_TYPE ) xStatus.usStackHighWaterMark )\r
+       {\r
+               xReturn = pdFAIL;\r
+       }\r
+\r
        /* Now obtain a task status without the high water mark but with the state,\r
        which in the case of the idle task should be Read. */\r
        xTimerTask = xTimerGetTimerDaemonTaskHandle();\r
@@ -408,6 +413,10 @@ const uint32_t ulRunTimeTollerance = ( uint32_t ) 0xfff;
        {\r
                xReturn = pdFAIL;\r
        }\r
+       if( uxTaskGetStackHighWaterMark2( xTimerTask ) != ( configSTACK_DEPTH_TYPE ) xStatus.usStackHighWaterMark )\r
+       {\r
+               xReturn = pdFAIL;\r
+       }\r
 \r
        /* Attempting to abort a delay in the idle task should be guaranteed to\r
        fail as the idle task should never block. */\r