[tests] Windows: a Linux-only test target shows as one ignored test, not as a pass
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user