change(unit-test): filter top domain power down check for some sleep test cases

This commit is contained in:
Li Shuai
2025-06-05 14:28:15 +08:00
parent 7912f9fafe
commit c6c2948a99
12 changed files with 17 additions and 15 deletions
@@ -184,7 +184,7 @@ static void test_temperature_sensor_sleep_retention(bool allow_pd)
#endif
printf("check if the sleep happened as expected\r\n");
TEST_ASSERT_EQUAL(0, sleep_ctx.sleep_request_result);
#if SOC_TEMPERATURE_SENSOR_UNDER_PD_TOP_DOMAIN
#if SOC_TEMPERATURE_SENSOR_UNDER_PD_TOP_DOMAIN && !SOC_PM_TOP_PD_NOT_ALLOWED
// check if the power domain also is powered down
TEST_ASSERT_EQUAL(allow_pd ? PMU_SLEEP_PD_TOP : 0, (sleep_ctx.sleep_flags) & PMU_SLEEP_PD_TOP);
#elif CONFIG_IDF_TARGET_ESP32P4