RTEMS | cpukit/age_verify: Add optional state-mandated age verification API (!1137)

Wayne Thornton (@wmthornton-dev) gitlab at rtems.org
Mon Mar 16 19:23:09 UTC 2026




Wayne Thornton started a new discussion on testsuites/libtests/age_verify01/init.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1137#note_145759

 > +        printf("   PASS: Valid bracket successfully set.\n");
 > +    } else {
 > +        printf("   FAIL: Could not set valid bracket! Status: %d\n", sc);
 > +    }
 > +
 > +    printf("3. Testing API lock mechanism...\n");
 > +    sc = rtems_age_set_bracket(AGE_18_PLUS);
 > +    if (sc == RTEMS_NOT_CONFIGURED) {
 > +        printf("   PASS: API correctly locked after initial configuration.\n");
 > +    } else {
 > +        printf("   FAIL: API allowed overwriting the protected bracket!\n");
 > +    }
 > +
 > +    printf("4. Testing signal retrieval and memory read...\n");
 > +    signal = rtems_age_get_signal();
 > +    if (signal == AGE_16_TO_17) {

This line was changed in the latest diff as I needed to correct an error in my logic that occurred when I changed the age brackets.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1137#note_145759
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260316/41eae626/attachment-0001.htm>


More information about the bugs mailing list