nwnss: keep fsm audit test release-build compatible

This commit is contained in:
Mario Fetka
2026-06-17 20:03:27 +00:00
parent 347a38477b
commit dcd756d0ec
2 changed files with 2 additions and 2 deletions

View File

@@ -599,7 +599,7 @@ even if it already compiles or has indirect test coverage.
| Status | Kind | Test coverage | File | Notes |
|---|---:|---|---|---|
| AUDITED | ORIG+FIX/PORT | nwnss.fsm | `src/nwnss/library/fsm/fsmnw.c` | Compared with original `public_core/library/fsm/fsmnw.c`; ready-queue/mailbox logic kept. Userspace port disables kernel worker threads (`NUM_FSM_THREADS=0`) and initializes a local interrupt mailbox; tests cover startup/shutdown, delayed ready-queue execution, FIFO draining, empty drain behavior, and mailbox release. Other changes are include-path fixes and callback casts. |
| AUDITED | ORIG+FIX/PORT | nwnss.fsm | `src/nwnss/library/fsm/fsmnw.c` | Compared with original `public_core/library/fsm/fsmnw.c`; ready-queue/mailbox logic kept. Userspace port disables kernel worker threads (`NUM_FSM_THREADS=0`) and initializes a local interrupt mailbox; tests cover startup/shutdown, delayed ready-queue execution, FIFO draining, empty drain behavior, and mailbox release without asserting debug-only initializer side effects in release builds. Other changes are include-path fixes and callback casts. |
### Sources: library/guid

View File

@@ -47,9 +47,9 @@ int main(void)
CHECK(NumFsmThreads == 0);
FSMLITE_INIT(&fsm, "test", 1);
#if NSS_DEBUG IS_ENABLED
CHECK(fsm.action == NULL);
CHECK(fsm.param.user == 0);
#if NSS_DEBUG IS_ENABLED
CHECK(fsm.type != NULL);
CHECK(fsm.instance == 1);
#endif