tests/qtest: Ensure STM32L4x5 EXTI state is correct at the end of QTests
commit58c782de557beb496bfb4c5ade721bbbd2480c72
authorInès Varhol <ines.varhol@telecom-paris.fr>
Sat, 29 Jun 2024 11:07:09 +0000 (29 13:07 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 1 Jul 2024 14:40:54 +0000 (1 15:40 +0100)
tree1be29ebe49e3c6c47b36a91ecd241f4e4d469ea7
parent9c4887e3b68a362f2f5a4e86daab98a51b3b769e
tests/qtest: Ensure STM32L4x5 EXTI state is correct at the end of QTests

EXTI's new field `irq_levels` tracks irq levels between tests when using
`global_qtest`.
This happens in `stm32l4x5_exti-test.c`, `stm32l4x5_syscfg-test.c` and
`stm32l4x5_gpio-test.c` (`dm163.c` doesn't use `global_qtest`).

To ensure that `irq_levels` has the same value before and after each
QTest, this commit toggles back the irq lines that were changed at the
end of each problematic test. Most QTests were already doing this.

Signed-off-by: Inès Varhol <ines.varhol@telecom-paris.fr>
Message-id: 20240629110800.539969-3-ines.varhol@telecom-paris.fr
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
tests/qtest/stm32l4x5_exti-test.c
tests/qtest/stm32l4x5_syscfg-test.c