mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -04:00
fix(interrupts): fixed flakey intr dump test
This commit is contained in:
parent
0e2bd068be
commit
c4f2abbfd3
@ -140,6 +140,9 @@ static int cmd_intr_alloc(int argc, char **argv)
|
||||
printf("Failed to allocate interrupt (source: %d, flags: 0x%x): %s\n", source_num, flags, esp_err_to_name(ret));
|
||||
return 1;
|
||||
}
|
||||
|
||||
printf("Allocated %s %s\n", source_str, flags_str);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -15,6 +15,7 @@ def test_esp_intr_dump_nonshared(dut: Dut) -> None:
|
||||
dut.expect_exact(PROMPT, timeout=10)
|
||||
|
||||
dut.write('intr_alloc GPIO LEVEL3\n')
|
||||
dut.expect_exact('Allocated GPIO LEVEL3')
|
||||
dut.expect_exact(PROMPT)
|
||||
|
||||
dut.write('intr_dump\n')
|
||||
@ -27,6 +28,7 @@ def test_esp_intr_dump_shared(dut: Dut) -> None:
|
||||
dut.expect_exact(PROMPT, timeout=10)
|
||||
|
||||
dut.write('intr_alloc GPIO SHARED\n')
|
||||
dut.expect_exact('Allocated GPIO SHARED')
|
||||
dut.expect_exact(PROMPT)
|
||||
|
||||
dut.write('intr_dump\n')
|
||||
@ -34,6 +36,7 @@ def test_esp_intr_dump_shared(dut: Dut) -> None:
|
||||
dut.expect_exact(PROMPT)
|
||||
|
||||
dut.write('intr_alloc UART1 SHARED\n')
|
||||
dut.expect_exact('Allocated UART1 SHARED')
|
||||
dut.expect_exact(PROMPT)
|
||||
|
||||
dut.write('intr_dump\n')
|
||||
|
Loading…
x
Reference in New Issue
Block a user