os_sanity_check_register

int os_sanity_check_register(struct os_sanity_check *sc)

Register the sanity check pointed to by sc with the sanity task. After registration the sanity task will check this sanity check with every run of the sanity task.

ArgumentsDescription
scPointer to sanity check

OS_OK: sanity check successfully registered

All other error codes indicate an error.

    int rc;

    rc = os_sanity_check_register(&my_sc); 
    assert(rc == OS_OK);