Disable the allocation failure Jobs test if malloc overrides are not allowed.
@@ -739,6 +739,7 @@ TEST( Jobs_Unit_Serialize, ParseErrorResponse )
_jobsOperation_t operation = { .link = { 0 } };
/* Test for failure to allocate memory for response. */
+ #if IOT_TEST_NO_MALLOC_OVERRIDES != 1
operation.status = AWS_IOT_JOBS_STATUS_PENDING;
operation.flags = AWS_IOT_JOBS_FLAG_WAITABLE;
operation.mallocResponse = IotTest_Malloc;
@@ -749,6 +750,7 @@ TEST( Jobs_Unit_Serialize, ParseErrorResponse )
TEST_ASSERT_EQUAL( AWS_IOT_JOBS_NO_MEMORY, operation.status );
UnityMalloc_MakeMallocFailAfterCount( -1 );
operation.flags = 0;
+ #endif /* if IOT_TEST_NO_MALLOC_OVERRIDES != 1 */
/* Test parsing of error responses. */
const char * pErrorResponses[] =
