ktstr 0.5.2

Test harness for Linux process schedulers
1
2
3
4
5
6
7
8
9
10
11
12
13
// Sister fixture to `declare_scheduler_empty_name.rs` for the
// `binary` field. An empty binary string flows into
// `SchedulerSpec::Discover("")` and fails confusingly at runtime
// inside `build_and_find_binary("")`; the macro must reject it
// at expand time so the error surfaces at the call site.
use ktstr::declare_scheduler;

declare_scheduler!(MY_SCHED, {
    name = "my_sched",
    binary = "",
});

fn main() {}