[tests] Windows: a Linux-only test target shows as one ignored test, not as a pass

This commit is contained in:
2026-11-10 20:53:40 +01:00
parent 6b2ba163df
commit a278ef3b23
16 changed files with 63 additions and 91 deletions
+4 -6
View File
@@ -11,14 +11,12 @@
#[cfg(unix)]
mod common;
// On Windows this target has nothing to run: it shows as one *ignored* test, never as a
// pass (ROADMAP §8.3; run it in WSL2, see CLAUDE.md).
#[cfg(not(unix))]
#[test]
fn skipped_on_windows() {
eprintln!(
"SKIPPED on Windows: {} needs Linux; run it in WSL2",
file!()
);
}
#[ignore = "needs Linux: run it in WSL2, see CLAUDE.md"]
fn needs_linux() {}
#[cfg(unix)]
mod unix {