]> git.sur5r.net Git - freertos/commitdiff
Added an additional configASSERT() to test the new eTaskGetState() behaviour (see...
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 22 Oct 2013 09:33:49 +0000 (09:33 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 22 Oct 2013 09:33:49 +0000 (09:33 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2069 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

FreeRTOS/Demo/Common/Minimal/GenQTest.c

index 74a15f3321842cdc2606224349e80e6e8f307044..c74188334f0276ff73cef9c2cc0722e5294162c9 100644 (file)
@@ -446,6 +446,14 @@ xSemaphoreHandle xMutex = ( xSemaphoreHandle ) pvParameters;
                mutex, and block when it finds it cannot obtain it. */\r
                vTaskResume( xHighPriorityMutexTask );\r
 \r
+               /* Ensure the task is reporting it priority as blocked and not\r
+               suspended (as it would have done in versions up to V7.5.3). */\r
+               #if( INCLUDE_eTaskGetState == 1 )\r
+               {\r
+                       configASSERT( eTaskGetState( xHighPriorityMutexTask ) == eBlocked );\r
+               }\r
+               #endif /* INCLUDE_eTaskGetState */\r
+\r
                /* We should now have inherited the prioritoy of the high priority task,\r
                as by now it will have attempted to get the mutex. */\r
                if( uxTaskPriorityGet( NULL ) != genqMUTEX_HIGH_PRIORITY )\r