pub fn format_verifier_stderr(
label: &str,
result: &VerifierVmResult,
raw: bool,
) -> StringExpand description
Format the scheduler’s captured STDERR for emission to the test’s stderr, or the empty string when there is no stderr to show.
Best-effort: renders whatever scheduler_stderr streamed before the
VM exited or was watchdog-killed. Non-raw runs collapse the libbpf
verifier-log region IN PLACE via collapse_verifier_region (the
verifier trace usually lands on stderr with the split streams); raw
runs pass the bytes through unmodified. A leading --- scheduler stderr --- header labels the section to match the stdout section’s
style so a reader can tell the two streams apart. The caller emits
the result via eprint! so it lands on the test’s real stderr.