Artifact c10174f5fda0774be94c7178403253a6e7c1527250f2471d22116dc5c057b65b:
- File
test/context/context-test.c
— part of check-in
[11f47eadde]
at
2026-11-18 11:58:22
on branch trunk
— Record S0/S1 qualification groundwork before product code
Contract maps and pinned Pi reference, local C qualification fixtures, MC/DC and Fil-C remote lifecycle tooling, and the context transaction substrate probe. No product harness code yet. (user: dmestas, size: 950) [annotate] [blame] [check-ins using]
/* Compile the legacy include separately: only unused-static-function warnings * are disabled, because CTX_NO_MAIN leaves unrelated CLI entry points unused. * The probe itself is a separate translation unit with all strict warnings. */ #define CTX_NO_MAIN #include "ctx.c" #include "context-test.h" void context_test_initialize(void) { if (sqlite3_auto_extension((void (*)(void))fsl_sqlext_init) != SQLITE_OK) die("cannot register libfossil for the isolated probe"); if (cmd_init(NULL) != 0) die("cannot initialize isolated ctx"); } sqlite3 *context_test_open(void) { sqlite3 *db = ctx_open(); if (!open_repo(db, "me")) die("cannot open isolated private repository"); return db; } void context_test_shutdown(void) { if (!sqlite3_cancel_auto_extension((void (*)(void))fsl_sqlext_init)) die("cannot unregister isolated extension"); if (sqlite3_shutdown() != SQLITE_OK) die("cannot shut down isolated SQLite"); }