diff --git a/src/inet/tests/TestInetEndPoint.cpp b/src/inet/tests/TestInetEndPoint.cpp index 6b82e482ca6d4a..34fc95267f2666 100644 --- a/src/inet/tests/TestInetEndPoint.cpp +++ b/src/inet/tests/TestInetEndPoint.cpp @@ -354,7 +354,7 @@ static void TestInetEndPointInternal(nlTestSuite * inSuite, void * inContext) NL_TEST_ASSERT(inSuite, SYSTEM_STATS_TEST_HIGH_WATER_MARK(System::Stats::kInetLayer_NumTCPEps, 1)); } -#if !CHIP_SYSTEM_CONFIG_POOL_USE_HEAP && (!defined(CHIP_DEVICE_LAYER_TARGET_FAKE) || CHIP_DEVICE_LAYER_TARGET_FAKE != 1) +#if !CHIP_SYSTEM_CONFIG_POOL_USE_HEAP // Test the Inet resource limitations. static void TestInetEndPointLimit(nlTestSuite * inSuite, void * inContext) { @@ -445,7 +445,7 @@ static const nlTest sTests[] = { NL_TEST_DEF("InetEndPoint::PreTest", TestInetPr NL_TEST_DEF("InetEndPoint::TestInetError", TestInetError), NL_TEST_DEF("InetEndPoint::TestInetInterface", TestInetInterface), NL_TEST_DEF("InetEndPoint::TestInetEndPoint", TestInetEndPointInternal), -#if !CHIP_SYSTEM_CONFIG_POOL_USE_HEAP && (!defined(CHIP_DEVICE_LAYER_TARGET_FAKE) || CHIP_DEVICE_LAYER_TARGET_FAKE != 1) +#if !CHIP_SYSTEM_CONFIG_POOL_USE_HEAP NL_TEST_DEF("InetEndPoint::TestEndPointLimit", TestInetEndPointLimit), #endif NL_TEST_SENTINEL() };