[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/5] tests/qtest/cmsdk-apb-watchdog-test: Don't abort on assertio
From: |
Roque Arcudia Hernandez |
Subject: |
[PATCH 4/5] tests/qtest/cmsdk-apb-watchdog-test: Don't abort on assertion failure |
Date: |
Fri, 15 Nov 2024 16:03:27 +0000 |
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>
---
tests/qtest/cmsdk-apb-watchdog-test.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/qtest/cmsdk-apb-watchdog-test.c
b/tests/qtest/cmsdk-apb-watchdog-test.c
index bdf6cfa256..fe535a553c 100644
--- a/tests/qtest/cmsdk-apb-watchdog-test.c
+++ b/tests/qtest/cmsdk-apb-watchdog-test.c
@@ -164,6 +164,7 @@ int main(int argc, char **argv)
int r;
g_test_init(&argc, &argv, NULL);
+ g_test_set_nonfatal_assertions();
if (qtest_has_machine(machine_info[MACHINE_LM3S811EVB].machine)) {
qtest_add_data_func("/cmsdk-apb-watchdog/watchdog",
--
2.47.0.338.g60cca15819-goog
- [PATCH 0/5] Make WDOGCONTROL.INTEN the counter enable of the CMSDK APB Watchdog, Roque Arcudia Hernandez, 2024/11/15
- [PATCH 1/5] hw/watchdog/cmsdk_apb_watchdog: Fix broken link, Roque Arcudia Hernandez, 2024/11/15
- [PATCH 2/5] hw/watchdog/cmsdk_apb_watchdog: Fix INTEN issues, Roque Arcudia Hernandez, 2024/11/15
- [PATCH 3/5] tests/qtest/cmsdk-apb-watchdog-test: Parameterize tests, Roque Arcudia Hernandez, 2024/11/15
- [PATCH 4/5] tests/qtest/cmsdk-apb-watchdog-test: Don't abort on assertion failure,
Roque Arcudia Hernandez <=
- [PATCH 5/5] tests/qtest/cmsdk-apb-watchdog-test: Test INTEN as counter enable, Roque Arcudia Hernandez, 2024/11/15
- Re: [PATCH 0/5] Make WDOGCONTROL.INTEN the counter enable of the CMSDK APB Watchdog, Roque Arcudia Hernandez, 2024/11/15
- Re: [PATCH 0/5] Make WDOGCONTROL.INTEN the counter enable of the CMSDK APB Watchdog, Peter Maydell, 2024/11/18