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 <josh.dewitt@garmin.com>
This commit is contained in:
Josh DeWitt 2025-03-14 09:09:44 -05:00 committed by Anas Nashif
commit da867dbcfc

View file

@ -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 */