mirror of
https://github.com/SCST-project/scst.git
synced 2026-10-22 14:12:33 +00:00
Issue #367 reports a TM thread dereferencing sess->acg while the session reassignment path temporarily clears it. Add private fixtures covering all black_hole modes for teardown TM functions, mode changes after real reassignment, and the unchanged-group path. Invoke the TM reader from the allocation stub during reassignment and check command state, drop policy and event delivery for all five modes. Keep the old and new modes equal in this case so that its expected policy is unambiguous. The regression runs without SKIP and may crash the test VM before a production fix; document this execution requirement. Expose only private test entry points and task-scoped redirects; normal build behavior is unchanged. Link: https://github.com/SCST-project/scst/issues/367