summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2013-10-22 09:33:49 +0000
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2013-10-22 09:33:49 +0000
commitd9b3f09da4ed662cd08f8e2812588ba0e1fbd599 (patch)
tree1cbf099b35e3d30e347f09024ed968577344f582
parent2980382119a131f51f1995f227cbf544f1b5c8cd (diff)
downloadfreertos-d9b3f09da4ed662cd08f8e2812588ba0e1fbd599.tar.gz
Added an additional configASSERT() to test the new eTaskGetState() behaviour (see previous checking comment).
git-svn-id: http://svn.code.sf.net/p/freertos/code/trunk@2069 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
-rw-r--r--FreeRTOS/Demo/Common/Minimal/GenQTest.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/FreeRTOS/Demo/Common/Minimal/GenQTest.c b/FreeRTOS/Demo/Common/Minimal/GenQTest.c
index 74a15f332..c74188334 100644
--- a/FreeRTOS/Demo/Common/Minimal/GenQTest.c
+++ b/FreeRTOS/Demo/Common/Minimal/GenQTest.c
@@ -446,6 +446,14 @@ xSemaphoreHandle xMutex = ( xSemaphoreHandle ) pvParameters;
mutex, and block when it finds it cannot obtain it. */
vTaskResume( xHighPriorityMutexTask );
+ /* Ensure the task is reporting it priority as blocked and not
+ suspended (as it would have done in versions up to V7.5.3). */
+ #if( INCLUDE_eTaskGetState == 1 )
+ {
+ configASSERT( eTaskGetState( xHighPriorityMutexTask ) == eBlocked );
+ }
+ #endif /* INCLUDE_eTaskGetState */
+
/* We should now have inherited the prioritoy of the high priority task,
as by now it will have attempted to get the mutex. */
if( uxTaskPriorityGet( NULL ) != genqMUTEX_HIGH_PRIORITY )