scheduler: gate send_after_to runtime tests out of the loom build

These three RFC-015 tests call run() (the real runtime), so under
--cfg loom they construct loom atomics outside a loom::model block and
panic with "cannot access Loom execution state from outside a Loom
model". They are unit tests of runtime behavior, not state-machine
models. Gate the module #[cfg(all(test, not(loom)))], matching the
existing run_queue::tests precedent: they still run under normal
cargo test, and the loom build is now 28/28 clean.
This commit is contained in:
smarm-agent
2026-06-19 14:48:23 +00:00
parent e9c39bff46
commit 0d6fc970a7
+1 -1
View File
@@ -726,7 +726,7 @@ pub fn run<F: FnOnce() + Send + 'static>(f: F) {
crate::runtime::init(crate::runtime::Config::exact(1)).run(f); crate::runtime::init(crate::runtime::Config::exact(1)).run(f);
} }
#[cfg(test)] #[cfg(all(test, not(loom)))]
mod send_after_to_tests { mod send_after_to_tests {
use super::*; use super::*;
use crate::channel::channel; use crate::channel::channel;