summary refs log tree commit diff
path: root/src/libstd/test.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-06-07 21:38:25 -0700
committerBrian Anderson <banderson@mozilla.com>2012-06-07 22:28:00 -0700
commit95b9d538b8bda04e222c95d478b97c19d77bb5c6 (patch)
tree819961fab6287b7b174879c1bddff7159487bdc2 /src/libstd/test.rs
parent7ef825bb607c4e934c92bd0b73ecbc4c24f3286b (diff)
downloadrust-95b9d538b8bda04e222c95d478b97c19d77bb5c6.tar.gz
rust-95b9d538b8bda04e222c95d478b97c19d77bb5c6.zip
Use #[cfg(unix)] and #[cfg(windows)] everywhere
Diffstat (limited to 'src/libstd/test.rs')
-rw-r--r--src/libstd/test.rs8
1 files changed, 3 insertions, 5 deletions
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 = {