From 0b303c766c3832d68e5b8fb82fd8e4c208ef1352 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 24 Nov 2019 17:27:28 -0800 Subject: [PATCH] Mark tests ignored on emscripten rather than omitting This way they still appear in `cargo test`'s output. --- test_suite/tests/compiletest.rs | 2 +- test_suite/tests/expandtest.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test_suite/tests/compiletest.rs b/test_suite/tests/compiletest.rs index fb88e39d..7118b9b3 100644 --- a/test_suite/tests/compiletest.rs +++ b/test_suite/tests/compiletest.rs @@ -1,4 +1,4 @@ -#[cfg(not(target_os = "emscripten"))] +#[cfg_attr(target_os = "emscripten", ignore)] #[rustversion::attr(not(nightly), ignore)] #[test] fn ui() { diff --git a/test_suite/tests/expandtest.rs b/test_suite/tests/expandtest.rs index 8e3a8639..d8913be0 100644 --- a/test_suite/tests/expandtest.rs +++ b/test_suite/tests/expandtest.rs @@ -1,6 +1,6 @@ -#[cfg(not(target_os = "emscripten"))] -#[rustversion::attr(not(nightly), ignore)] +#[cfg_attr(target_os = "emscripten", ignore)] #[cfg_attr(not(cargo_expand), ignore)] +#[rustversion::attr(not(nightly), ignore)] #[test] fn expandtest() { macrotest::expand("tests/expand/*.rs");