about summary refs log tree commit diff
path: root/src/libcore/task.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/libcore/task.rs
parent7ef825bb607c4e934c92bd0b73ecbc4c24f3286b (diff)
downloadrust-95b9d538b8bda04e222c95d478b97c19d77bb5c6.tar.gz
rust-95b9d538b8bda04e222c95d478b97c19d77bb5c6.zip
Use #[cfg(unix)] and #[cfg(windows)] everywhere
Diffstat (limited to 'src/libcore/task.rs')
-rw-r--r--src/libcore/task.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libcore/task.rs b/src/libcore/task.rs
index f9e70e0fc39..654d0e92bd6 100644
--- a/src/libcore/task.rs
+++ b/src/libcore/task.rs
@@ -605,7 +605,7 @@ fn test_spawn_raw_simple() {
 }
 
 #[test]
-#[ignore(cfg(target_os = "win32"))]
+#[ignore(cfg(windows))]
 fn test_spawn_raw_unsupervise() {
     let opts = {
         supervise: false
@@ -617,7 +617,7 @@ fn test_spawn_raw_unsupervise() {
 }
 
 #[test]
-#[ignore(cfg(target_os = "win32"))]
+#[ignore(cfg(windows))]
 fn test_spawn_raw_notify() {
     let task_po = comm::port();
     let task_ch = comm::chan(task_po);
@@ -674,7 +674,7 @@ fn test_add_wrapper() {
 }
 
 #[test]
-#[ignore(cfg(target_os = "win32"))]
+#[ignore(cfg(windows))]
 fn test_future_result() {
     let buildr = builder();
     let result = future_result(buildr);
@@ -726,7 +726,7 @@ fn test_try_success() {
 }
 
 #[test]
-#[ignore(cfg(target_os = "win32"))]
+#[ignore(cfg(windows))]
 fn test_try_fail() {
     alt try {||
         fail
@@ -738,7 +738,7 @@ fn test_try_fail() {
 
 #[test]
 #[should_fail]
-#[ignore(cfg(target_os = "win32"))]
+#[ignore(cfg(windows))]
 fn test_spawn_sched_no_threads() {
     spawn_sched(manual_threads(0u)) {|| };
 }
@@ -957,7 +957,7 @@ fn test_osmain() {
 }
 
 #[test]
-#[ignore(cfg(target_os = "win32"))]
+#[ignore(cfg(windows))]
 #[should_fail]
 fn test_unkillable() unsafe {
     import comm::methods;