+\r
+ /*--------------------------------------------------------------------------\r
+ Now try querying the previus value while notifying a task. */\r
+ xTaskNotifyAndQuery( xTaskToNotify, 0x00, eSetBits, &ulPreviousValue );\r
+ configASSERT( ulNotifiedValue == ( ULONG_MAX & ~( ulBit0 | ulBit1 ) ) );\r
+\r
+ /* Clear all bits. */\r
+ xTaskNotifyWait( 0x00, ULONG_MAX, &ulNotifiedValue, 0 );\r
+ xTaskNotifyAndQuery( xTaskToNotify, 0x00, eSetBits, &ulPreviousValue );\r
+ configASSERT( ulPreviousValue == 0 );\r
+\r
+ ulExpectedValue = 0;\r
+ for( ulLoop = 0x01; ulLoop < 0x80UL; ulLoop <<= 1UL )\r
+ {\r
+ /* Set the next bit up, and expect to receive the last bits set (so\r
+ the previous value will not yet have the bit being set this time\r
+ around). */\r
+ xTaskNotifyAndQuery( xTaskToNotify, ulLoop, eSetBits, &ulPreviousValue );\r
+ configASSERT( ulExpectedValue == ulPreviousValue );\r
+ ulExpectedValue |= ulLoop;\r
+ }\r
+\r