mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 20:24:32 +02:00
ccomp_timer: fix broken unit test
This commit is contained in:
@@ -214,15 +214,15 @@ TEST_CASE("Can allocate IRAM int only with an IRAM handler", "[esp32]")
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
intr_handle_t ih;
|
intr_handle_t ih;
|
||||||
esp_err_t err = esp_intr_alloc(ETS_INTERNAL_PROFILING_INTR_SOURCE,
|
esp_err_t err = esp_intr_alloc(ETS_INTERNAL_SW0_INTR_SOURCE,
|
||||||
ESP_INTR_FLAG_IRAM, &dummy, NULL, &ih);
|
ESP_INTR_FLAG_IRAM, &dummy, NULL, &ih);
|
||||||
TEST_ASSERT_EQUAL_INT(ESP_ERR_INVALID_ARG, err);
|
TEST_ASSERT_EQUAL_INT(ESP_ERR_INVALID_ARG, err);
|
||||||
err = esp_intr_alloc(ETS_INTERNAL_PROFILING_INTR_SOURCE,
|
err = esp_intr_alloc(ETS_INTERNAL_SW0_INTR_SOURCE,
|
||||||
ESP_INTR_FLAG_IRAM, &dummy_iram, NULL, &ih);
|
ESP_INTR_FLAG_IRAM, &dummy_iram, NULL, &ih);
|
||||||
TEST_ESP_OK(err);
|
TEST_ESP_OK(err);
|
||||||
err = esp_intr_free(ih);
|
err = esp_intr_free(ih);
|
||||||
TEST_ESP_OK(err);
|
TEST_ESP_OK(err);
|
||||||
err = esp_intr_alloc(ETS_INTERNAL_PROFILING_INTR_SOURCE,
|
err = esp_intr_alloc(ETS_INTERNAL_SW0_INTR_SOURCE,
|
||||||
ESP_INTR_FLAG_IRAM, &dummy_rtc, NULL, &ih);
|
ESP_INTR_FLAG_IRAM, &dummy_rtc, NULL, &ih);
|
||||||
TEST_ESP_OK(err);
|
TEST_ESP_OK(err);
|
||||||
err = esp_intr_free(ih);
|
err = esp_intr_free(ih);
|
||||||
|
Reference in New Issue
Block a user