[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
@@ -9,14 +9,12 @@
#![allow(clippy::unwrap_used, clippy::expect_used, clippy::panic)]
// 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 (Pingora runner, Caddy); run it in WSL2",
file!()
);
}
#[ignore = "needs Linux (Pingora runner, Caddy): run it in WSL2, see CLAUDE.md"]
fn needs_linux() {}
#[cfg(unix)]
mod unix {
+4 -6
View File
@@ -7,14 +7,12 @@
#![allow(clippy::unwrap_used, clippy::expect_used, clippy::panic)]
// 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 (Pingora runner, Caddy, Pebble); run it in WSL2, see CLAUDE.md",
file!()
);
}
#[ignore = "needs Linux (Pingora runner, Caddy, Pebble): run it in WSL2, see CLAUDE.md"]
fn needs_linux() {}
#[cfg(unix)]
mod unix {