nwnss: keep fsm audit test release-build compatible
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user