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