You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2025/11/19 07:22:44 UTC
(mynewt-core) 02/03: sys/log/modlog: Fix append tests
This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit 6e0a53f97206fac3039bb4349266f445ef626c75
Author: Szymon Janc <sz...@codecoup.pl>
AuthorDate: Tue Nov 18 13:37:00 2025 +0100
sys/log/modlog: Fix append tests
Those need to be separate tests since new logs cannot be registered
after use (nor unregistered) and thus log subsystem needs to be
reinitiliazed inbetween.
---
sys/log/modlog/selftest/src/testcases/modlog_test_case_append.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sys/log/modlog/selftest/src/testcases/modlog_test_case_append.c b/sys/log/modlog/selftest/src/testcases/modlog_test_case_append.c
index c1235f992..1003ad4e1 100644
--- a/sys/log/modlog/selftest/src/testcases/modlog_test_case_append.c
+++ b/sys/log/modlog/selftest/src/testcases/modlog_test_case_append.c
@@ -198,5 +198,9 @@ mltca_run(bool use_mbufs)
TEST_CASE_SELF(modlog_test_case_append)
{
mltca_run(false);
+}
+
+TEST_CASE_SELF(modlog_test_case_append_mbuf)
+{
mltca_run(true);
}