tests/qtest/cmsdk-apb-watchdog-test: Don't abort on assertion failure
authorRoque Arcudia Hernandez <roqueh@google.com>
Tue, 19 Nov 2024 13:02:06 +0000 (13:02 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 19 Nov 2024 13:02:06 +0000 (13:02 +0000)
commit9a0762c13283da7130cf27d174d5bbf4b7cc2acb
tree61e92fb079a5340e53d0175ba9ab0be796abaeb0
parent583c98841553bf9ea6c2aa5e799be05e32fd378c
tests/qtest/cmsdk-apb-watchdog-test: Don't abort on assertion failure

Currently the watchdog test has a behavior in which the first test
assertion that fails will make the test abort making it impossible to
see the result of other tests:

 # ERROR:../tests/qtest/cmsdk-apb-watchdog-test.c:87:test_watchdog:
 assertion failed ...
 Bail out!
 Aborted

Changing the behavior in order to let the test finish other tests and
report the ones that pass and fail:

 # ERROR:../tests/qtest/cmsdk-apb-watchdog-test.c:101:test_watchdog:
 assertion failed ...
 not ok 1 /arm/cmsdk-apb-watchdog/watchdog

Signed-off-by: Roque Arcudia Hernandez <roqueh@google.com>
Message-id: 20241115160328.1650269-5-roqueh@google.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
tests/qtest/cmsdk-apb-watchdog-test.c