From 95b9d538b8bda04e222c95d478b97c19d77bb5c6 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 7 Jun 2012 21:38:25 -0700 Subject: Use #[cfg(unix)] and #[cfg(windows)] everywhere --- src/libstd/test.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/libstd/test.rs') diff --git a/src/libstd/test.rs b/src/libstd/test.rs index 18aaebb3fdb..e693ec2a1ac 100644 --- a/src/libstd/test.rs +++ b/src/libstd/test.rs @@ -314,12 +314,10 @@ fn run_tests(opts: test_opts, tests: [test_desc], } // Windows tends to dislike being overloaded with threads. -#[cfg(target_os = "win32")] +#[cfg(windows)] const sched_overcommit : uint = 1u; -#[cfg(target_os = "linux")] -#[cfg(target_os = "freebsd")] -#[cfg(target_os = "macos")] +#[cfg(unix)] const sched_overcommit : uint = 4u; fn get_concurrency() -> uint { @@ -449,7 +447,7 @@ mod tests { } #[test] - #[ignore(cfg(target_os = "win32"))] + #[ignore(cfg(windows))] fn test_should_fail() { fn f() { fail; } let desc = { -- cgit 1.4.1-3-g733a5