From da867dbcfcf7fe4aafc809ed71a5f79fb0c1ec32 Mon Sep 17 00:00:00 2001 From: Josh DeWitt Date: Fri, 14 Mar 2025 09:09:44 -0500 Subject: [PATCH] tests: Ensure the maximum expected SYS init priority works Add a test to ensure that the max expected 2-digit SYS init priority works. Signed-off-by: Josh DeWitt --- tests/kernel/device/src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/kernel/device/src/main.c b/tests/kernel/device/src/main.c index 4e998120d01..3e7da56ab2d 100644 --- a/tests/kernel/device/src/main.c +++ b/tests/kernel/device/src/main.c @@ -270,10 +270,11 @@ SYS_INIT(init_fn, APPLICATION, 0); SYS_INIT_NAMED(init1, init_fn, APPLICATION, 1); SYS_INIT_NAMED(init2, init_fn, APPLICATION, 2); SYS_INIT_NAMED(init3, init_fn, APPLICATION, 2); +SYS_INIT_NAMED(init4, init_fn, APPLICATION, 99); ZTEST(device, test_sys_init_multiple) { - zassert_equal(sys_init_counter, 4, ""); + zassert_equal(sys_init_counter, 5, ""); } /* this is for storing sequence during initialization */