]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/WIN32-MingW/code_coverage_additions.c
Update version number in readiness for V10.3.0 release. Sync SVN with reviewed releas...
[freertos] / FreeRTOS / Demo / WIN32-MingW / code_coverage_additions.c
index ab05274441a791e0eb0d8f1e77440798c4dfdaa2..97d30a96c4b32ba602ba6624cbe31977f8f6f355 100644 (file)
@@ -1,6 +1,6 @@
 /*\r
- * FreeRTOS Kernel V10.1.0\r
- * Copyright (C) 2018 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
+ * FreeRTOS Kernel V10.3.0\r
+ * Copyright (C) 2020 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
  * this software and associated documentation files (the "Software"), to deal in\r
@@ -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
@@ -499,12 +508,22 @@ TaskHandle_t xTask;
                }\r
        }\r
 \r
+       /* Try FromISR version too. */\r
+       if( xTaskGetApplicationTaskTagFromISR( xTask ) != prvDummyTagFunction )\r
+       {\r
+               xReturn = pdFAIL;\r
+       }\r
+\r
        /* Now try with a NULL handle, so using this task. */\r
        vTaskSetApplicationTaskTag( NULL, NULL );\r
        if( xTaskGetApplicationTaskTag( NULL ) != NULL )\r
        {\r
                xReturn = pdFAIL;\r
        }\r
+       if( xTaskGetApplicationTaskTagFromISR( NULL ) != NULL )\r
+       {\r
+               xReturn = pdFAIL;\r
+       }\r
 \r
        vTaskSetApplicationTaskTag( NULL, prvDummyTagFunction );\r
        if( xTaskGetApplicationTaskTag( NULL ) != prvDummyTagFunction )\r
@@ -523,6 +542,12 @@ TaskHandle_t xTask;
                }\r
        }\r
 \r
+       /* Try FromISR version too. */\r
+       if( xTaskGetApplicationTaskTagFromISR( NULL ) != prvDummyTagFunction )\r
+       {\r
+               xReturn = pdFAIL;\r
+       }\r
+\r
        vTaskSetApplicationTaskTag( NULL, NULL );\r
        if( xTaskGetApplicationTaskTag( NULL ) != NULL )\r
        {\r