Commit 96527d1
add adversarial RX session test suite (49 tests)
Intrusive tests for the RX session pipeline covering:
- slot lifecycle (new/advance/destroy with truncation)
- v1 golden vectors from Cyphal spec (heartbeat, NodeInfo 11-frame, array CAN FD)
- v1 golden vectors from v4 libcanard (DUCK, {1..14}, {0..99}, CRC split)
- v0 golden vectors from DroneCAN bus capture (MagField, gnss.Fix, pressure, temp)
- session lifecycle and admission (creation, reuse, TID timeout, iface failover)
- priority preemption (independent slots, same-priority replacement, all 8 prios)
- OOM and error paths (session OOM, slot OOM, bad CRC)
- session cleanup (stale/fresh, max timeout, triggered by start)
- edge cases (extent zero, exact extent, TID rollover, multi-source, all 7 kinds)
- regressions for the two previously fixed bugs (bool CRC, toggle assertion)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 30f2064 commit 96527d1
2 files changed
+2183
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
0 commit comments