Files
libakerror/tests/err_init_reservation_fatal.c
Logikoma (Codex GPT-5) b0d1b22477
Some checks failed
libakerror CI Build / cmake_build (push) Successful in 2m49s
libakerror CI Build / coverage (push) Successful in 2m46s
libakerror CI Build / mutation_test (push) Has been cancelled
Test init reservation failure
2026-08-03 13:11:01 -04:00

21 lines
595 B
C

#include "akerror.h"
#include <stdio.h>
/*
* This executable links to akerror_init_failure, a test-only library target
* with no status-range slots. The first reservation in akerr_init() must be
* terminal: continuing would leave every library status unowned and make all
* subsequent name registrations invalid.
*
* CTest marks this WILL_FAIL. Reaching the message and returning zero means
* initialization swallowed its own reservation failure.
*/
int main(void)
{
akerr_init();
fprintf(stderr, "err_init_reservation_fatal: akerr_init did not terminate\n");
return 0;
}