Update define guard
Remove unused test wrapper
@@ -71,7 +71,7 @@ TEST_TEAR_DOWN( UTIL_Platform_Threads )
TEST_GROUP_RUNNER( UTIL_Platform_Threads )
{
RUN_TEST_CASE( UTIL_Platform_Threads, IotThreads_CreateDetachedThread );
- #if ( configUSE_TRACE_FACILITY == 1 )
+ #if ( INCLUDE_uxTaskPriorityGet == 1 )
RUN_TEST_CASE( UTIL_Platform_Threads, IotThreads_ThreadPriority );
#endif
RUN_TEST_CASE( UTIL_Platform_Threads, IotThreads_MutexTest );
@@ -116,7 +116,7 @@ TEST( UTIL_Platform_Threads, IotThreads_CreateDetachedThread )
/**
* @brief helper function for testing thread priority
*/
-#if ( configUSE_TRACE_FACILITY == 1 )
+#if ( INCLUDE_uxTaskPriorityGet == 1 )
void threadPriorityTestFunction( void * param )
{
*( int32_t * ) param = uxTaskPriorityGet( NULL );
@@ -163,16 +163,7 @@ TEST( UTIL_Platform_Threads, IotThreads_CreateDetachedThread )
printf( "Expected Pri = 7, actual = %d\r\n", ( int ) attrData );
}
-/*-----------------------------------------------------------*/
-
-/**
- * @brief helper function for testing thread priority
- */
- void threadStackSizeTestFunction( void * param )
- {
- *( int32_t * ) param = 300 + uxTaskGetStackHighWaterMark( NULL );
- }
-#endif /* if ( configUSE_TRACE_FACILITY == 1 ) */
+#endif /* if ( INCLUDE_uxTaskPriorityGet == 1 ) */
/**
* @brief helper function for testing mutex
