Enabled unit tests in std and extra.

This commit is contained in:
Vadim Chugunov 2013-08-19 15:40:37 -07:00
parent 9e4fddeade
commit 12ecdb6381
27 changed files with 46 additions and 109 deletions

View file

@ -612,7 +612,7 @@ mod tests {
} }
} }
#[test] #[should_fail] #[ignore(cfg(windows))] #[test] #[should_fail]
fn test_arc_condvar_poison() { fn test_arc_condvar_poison() {
unsafe { unsafe {
let arc = ~MutexArc::new(1); let arc = ~MutexArc::new(1);
@ -636,7 +636,7 @@ mod tests {
} }
} }
} }
#[test] #[should_fail] #[ignore(cfg(windows))] #[test] #[should_fail]
fn test_mutex_arc_poison() { fn test_mutex_arc_poison() {
unsafe { unsafe {
let arc = ~MutexArc::new(1); let arc = ~MutexArc::new(1);
@ -651,7 +651,7 @@ mod tests {
} }
} }
} }
#[test] #[should_fail] #[ignore(cfg(windows))] #[test] #[should_fail]
pub fn test_mutex_arc_unwrap_poison() { pub fn test_mutex_arc_unwrap_poison() {
let arc = MutexArc::new(1); let arc = MutexArc::new(1);
let arc2 = ~(&arc).clone(); let arc2 = ~(&arc).clone();
@ -668,7 +668,7 @@ mod tests {
let one = arc.unwrap(); let one = arc.unwrap();
assert!(one == 1); assert!(one == 1);
} }
#[test] #[should_fail] #[ignore(cfg(windows))] #[test] #[should_fail]
fn test_rw_arc_poison_wr() { fn test_rw_arc_poison_wr() {
let arc = ~RWArc::new(1); let arc = ~RWArc::new(1);
let arc2 = (*arc).clone(); let arc2 = (*arc).clone();
@ -681,7 +681,7 @@ mod tests {
assert_eq!(*one, 1); assert_eq!(*one, 1);
} }
} }
#[test] #[should_fail] #[ignore(cfg(windows))] #[test] #[should_fail]
fn test_rw_arc_poison_ww() { fn test_rw_arc_poison_ww() {
let arc = ~RWArc::new(1); let arc = ~RWArc::new(1);
let arc2 = (*arc).clone(); let arc2 = (*arc).clone();
@ -694,7 +694,7 @@ mod tests {
assert_eq!(*one, 1); assert_eq!(*one, 1);
} }
} }
#[test] #[should_fail] #[ignore(cfg(windows))] #[test] #[should_fail]
fn test_rw_arc_poison_dw() { fn test_rw_arc_poison_dw() {
let arc = ~RWArc::new(1); let arc = ~RWArc::new(1);
let arc2 = (*arc).clone(); let arc2 = (*arc).clone();
@ -709,7 +709,7 @@ mod tests {
assert_eq!(*one, 1); assert_eq!(*one, 1);
} }
} }
#[test] #[ignore(cfg(windows))] #[test]
fn test_rw_arc_no_poison_rr() { fn test_rw_arc_no_poison_rr() {
let arc = ~RWArc::new(1); let arc = ~RWArc::new(1);
let arc2 = (*arc).clone(); let arc2 = (*arc).clone();
@ -722,7 +722,7 @@ mod tests {
assert_eq!(*one, 1); assert_eq!(*one, 1);
} }
} }
#[test] #[ignore(cfg(windows))] #[test]
fn test_rw_arc_no_poison_rw() { fn test_rw_arc_no_poison_rw() {
let arc = ~RWArc::new(1); let arc = ~RWArc::new(1);
let arc2 = (*arc).clone(); let arc2 = (*arc).clone();
@ -735,7 +735,7 @@ mod tests {
assert_eq!(*one, 1); assert_eq!(*one, 1);
} }
} }
#[test] #[ignore(cfg(windows))] #[test]
fn test_rw_arc_no_poison_dr() { fn test_rw_arc_no_poison_dr() {
let arc = ~RWArc::new(1); let arc = ~RWArc::new(1);
let arc2 = (*arc).clone(); let arc2 = (*arc).clone();

View file

@ -291,7 +291,6 @@ fn test_arena_destructors() {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_arena_destructors_fail() { fn test_arena_destructors_fail() {
let arena = Arena::new(); let arena = Arena::new();
// Put some stuff in the arena. // Put some stuff in the arena.

View file

@ -185,7 +185,6 @@ mod tests {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_overrun_get() { fn test_overrun_get() {
let cv = malloc(16u as size_t); let cv = malloc(16u as size_t);
@ -194,7 +193,6 @@ mod tests {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_overrun_set() { fn test_overrun_set() {
let cv = malloc(16u as size_t); let cv = malloc(16u as size_t);

View file

@ -967,12 +967,10 @@ mod test {
} }
#[test] #[test]
#[ignore(cfg(windows))]
fn test_try_recv_none4_reader() { fn test_try_recv_none4_reader() {
test_try_recv_none4(reader_port_loader); test_try_recv_none4(reader_port_loader);
} }
#[test] #[test]
#[ignore(cfg(windows))]
fn test_try_recv_none4_pipe() { fn test_try_recv_none4_pipe() {
test_try_recv_none4(pipe_port_loader); test_try_recv_none4(pipe_port_loader);
} }

View file

@ -212,7 +212,6 @@ mod test {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(target_os = "win32"))]
fn test_futurefail() { fn test_futurefail() {
let mut f = spawn(|| fail!()); let mut f = spawn(|| fail!());
let _x: ~str = f.get(); let _x: ~str = f.get();

View file

@ -338,7 +338,6 @@ mod tests {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_empty_pop() { let mut heap = PriorityQueue::new::<int>(); heap.pop(); } fn test_empty_pop() { let mut heap = PriorityQueue::new::<int>(); heap.pop(); }
#[test] #[test]
@ -349,7 +348,6 @@ mod tests {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_empty_top() { let empty = PriorityQueue::new::<int>(); empty.top(); } fn test_empty_top() { let empty = PriorityQueue::new::<int>(); empty.top(); }
#[test] #[test]
@ -360,7 +358,6 @@ mod tests {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_empty_replace() { let mut heap = PriorityQueue::new(); heap.replace(5); } fn test_empty_replace() { let mut heap = PriorityQueue::new(); heap.replace(5); }
#[test] #[test]

View file

@ -921,7 +921,7 @@ mod tests {
assert!(!cond.signal()); assert!(!cond.signal());
} }
} }
#[test] #[ignore(cfg(windows))] #[test]
fn test_mutex_killed_simple() { fn test_mutex_killed_simple() {
// Mutex must get automatically unlocked if failed/killed within. // Mutex must get automatically unlocked if failed/killed within.
let m = ~Mutex::new(); let m = ~Mutex::new();
@ -937,7 +937,7 @@ mod tests {
do m.lock { } do m.lock { }
} }
#[ignore(reason = "linked failure")] #[ignore(reason = "linked failure")]
#[test] #[ignore(cfg(windows))] #[test]
fn test_mutex_killed_cond() { fn test_mutex_killed_cond() {
// Getting killed during cond wait must not corrupt the mutex while // Getting killed during cond wait must not corrupt the mutex while
// unwinding (e.g. double unlock). // unwinding (e.g. double unlock).
@ -964,7 +964,7 @@ mod tests {
} }
} }
#[ignore(reason = "linked failure")] #[ignore(reason = "linked failure")]
#[test] #[ignore(cfg(windows))] #[test]
fn test_mutex_killed_broadcast() { fn test_mutex_killed_broadcast() {
use std::unstable::finally::Finally; use std::unstable::finally::Finally;
@ -1024,7 +1024,7 @@ mod tests {
cond.wait(); cond.wait();
} }
} }
#[test] #[ignore(cfg(windows))] #[test]
fn test_mutex_different_conds() { fn test_mutex_different_conds() {
let result = do task::try { let result = do task::try {
let m = ~Mutex::new_with_condvars(2); let m = ~Mutex::new_with_condvars(2);
@ -1045,7 +1045,7 @@ mod tests {
}; };
assert!(result.is_err()); assert!(result.is_err());
} }
#[test] #[ignore(cfg(windows))] #[test]
fn test_mutex_no_condvars() { fn test_mutex_no_condvars() {
let result = do task::try { let result = do task::try {
let m = ~Mutex::new_with_condvars(0); let m = ~Mutex::new_with_condvars(0);
@ -1275,7 +1275,7 @@ mod tests {
test_rwlock_cond_broadcast_helper(12, false, true); test_rwlock_cond_broadcast_helper(12, false, true);
test_rwlock_cond_broadcast_helper(12, false, false); test_rwlock_cond_broadcast_helper(12, false, false);
} }
#[cfg(test)] #[ignore(cfg(windows))] #[cfg(test)]
fn rwlock_kill_helper(mode1: RWLockMode, mode2: RWLockMode) { fn rwlock_kill_helper(mode1: RWLockMode, mode2: RWLockMode) {
// Mutex must get automatically unlocked if failed/killed within. // Mutex must get automatically unlocked if failed/killed within.
let x = ~RWLock::new(); let x = ~RWLock::new();
@ -1290,23 +1290,23 @@ mod tests {
// child task must have finished by the time try returns // child task must have finished by the time try returns
do lock_rwlock_in_mode(x, mode2) { } do lock_rwlock_in_mode(x, mode2) { }
} }
#[test] #[ignore(cfg(windows))] #[test]
fn test_rwlock_reader_killed_writer() { fn test_rwlock_reader_killed_writer() {
rwlock_kill_helper(Read, Write); rwlock_kill_helper(Read, Write);
} }
#[test] #[ignore(cfg(windows))] #[test]
fn test_rwlock_writer_killed_reader() { fn test_rwlock_writer_killed_reader() {
rwlock_kill_helper(Write,Read ); rwlock_kill_helper(Write,Read );
} }
#[test] #[ignore(cfg(windows))] #[test]
fn test_rwlock_reader_killed_reader() { fn test_rwlock_reader_killed_reader() {
rwlock_kill_helper(Read, Read ); rwlock_kill_helper(Read, Read );
} }
#[test] #[ignore(cfg(windows))] #[test]
fn test_rwlock_writer_killed_writer() { fn test_rwlock_writer_killed_writer() {
rwlock_kill_helper(Write,Write); rwlock_kill_helper(Write,Write);
} }
#[test] #[ignore(cfg(windows))] #[test]
fn test_rwlock_kill_downgrader() { fn test_rwlock_kill_downgrader() {
rwlock_kill_helper(Downgrade, Read); rwlock_kill_helper(Downgrade, Read);
rwlock_kill_helper(Read, Downgrade); rwlock_kill_helper(Read, Downgrade);
@ -1321,7 +1321,7 @@ mod tests {
rwlock_kill_helper(Downgrade, DowngradeRead); rwlock_kill_helper(Downgrade, DowngradeRead);
rwlock_kill_helper(Downgrade, DowngradeRead); rwlock_kill_helper(Downgrade, DowngradeRead);
} }
#[test] #[should_fail] #[ignore(cfg(windows))] #[test] #[should_fail]
fn test_rwlock_downgrade_cant_swap() { fn test_rwlock_downgrade_cant_swap() {
// Tests that you can't downgrade with a different rwlock's token. // Tests that you can't downgrade with a different rwlock's token.
let x = ~RWLock::new(); let x = ~RWLock::new();

View file

@ -1163,7 +1163,6 @@ mod tests {
} }
#[test] #[test]
#[ignore(cfg(windows))]
fn test_should_fail() { fn test_should_fail() {
fn f() { fail!(); } fn f() { fail!(); }
let desc = TestDescAndFn { let desc = TestDescAndFn {

View file

@ -283,7 +283,6 @@ mod tests {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_with_ref_empty_fail() { fn test_with_ref_empty_fail() {
let c_str = unsafe { CString::new(ptr::null(), false) }; let c_str = unsafe { CString::new(ptr::null(), false) };
c_str.with_ref(|_| ()); c_str.with_ref(|_| ());
@ -306,7 +305,6 @@ mod tests {
} }
#[test] #[test]
#[ignore(cfg(windows))]
fn test_to_c_str_fail() { fn test_to_c_str_fail() {
use c_str::null_byte::cond; use c_str::null_byte::cond;

View file

@ -93,7 +93,6 @@ fn test_basic() {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_take_empty() { fn test_take_empty() {
let value_cell = Cell::new_empty::<~int>(); let value_cell = Cell::new_empty::<~int>();
value_cell.take(); value_cell.take();
@ -101,7 +100,6 @@ fn test_take_empty() {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_put_back_non_empty() { fn test_put_back_non_empty() {
let value_cell = Cell::new(~10); let value_cell = Cell::new(~10);
value_cell.put_back(~20); value_cell.put_back(~20);

View file

@ -2017,7 +2017,6 @@ mod tests {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_read_buffer_too_small() { fn test_read_buffer_too_small() {
let path = &Path("tmp/lib-io-test-read-buffer-too-small.tmp"); let path = &Path("tmp/lib-io-test-read-buffer-too-small.tmp");
// ensure the file exists // ensure the file exists

View file

@ -201,7 +201,6 @@ fn test_tls_overwrite_multiple_types() {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_tls_cleanup_on_failure() { fn test_tls_cleanup_on_failure() {
static str_key: Key<@~str> = &Key; static str_key: Key<@~str> = &Key;
static box_key: Key<@@()> = &Key; static box_key: Key<@@()> = &Key;

View file

@ -919,7 +919,6 @@ mod tests {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_range_step_zero_step() { fn test_range_step_zero_step() {
do range_step(0,10,0) |_i| { true }; do range_step(0,10,0) |_i| { true };
} }

View file

@ -638,14 +638,12 @@ mod tests {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
pub fn to_str_radix1() { pub fn to_str_radix1() {
100u.to_str_radix(1u); 100u.to_str_radix(1u);
} }
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
pub fn to_str_radix37() { pub fn to_str_radix37() {
100u.to_str_radix(37u); 100u.to_str_radix(37u);
} }
@ -697,13 +695,11 @@ mod tests {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_range_step_zero_step_up() { fn test_range_step_zero_step_up() {
do range_step(0,10,0) |_i| { true }; do range_step(0,10,0) |_i| { true };
} }
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_range_step_zero_step_down() { fn test_range_step_zero_step_down() {
do range_step(0,-10,0) |_i| { true }; do range_step(0,-10,0) |_i| { true };
} }

View file

@ -479,7 +479,7 @@ mod tests {
assert_eq!(y2, 5); assert_eq!(y2, 5);
assert!(y.is_none()); assert!(y.is_none());
} }
#[test] #[should_fail] #[ignore(cfg(windows))] #[test] #[should_fail]
fn test_option_too_much_dance() { fn test_option_too_much_dance() {
let mut y = Some(util::NonCopyable); let mut y = Some(util::NonCopyable);
let _y2 = y.take_unwrap(); let _y2 = y.take_unwrap();

View file

@ -1815,7 +1815,6 @@ mod tests {
} }
#[test] #[test]
#[ignore(cfg(windows))]
#[ignore] #[ignore]
fn test_setenv_overwrite() { fn test_setenv_overwrite() {
let n = make_rand_name(); let n = make_rand_name();
@ -1829,7 +1828,6 @@ mod tests {
// Windows GetEnvironmentVariable requires some extra work to make sure // Windows GetEnvironmentVariable requires some extra work to make sure
// the buffer the variable is copied into is the right size // the buffer the variable is copied into is the right size
#[test] #[test]
#[ignore(cfg(windows))]
#[ignore] #[ignore]
fn test_getenv_big() { fn test_getenv_big() {
let mut s = ~""; let mut s = ~"";

View file

@ -670,7 +670,6 @@ pub mod ptr_tests {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_ptr_array_each_with_len_null_ptr() { fn test_ptr_array_each_with_len_null_ptr() {
unsafe { unsafe {
array_each_with_len(0 as **libc::c_char, 1, |e| { array_each_with_len(0 as **libc::c_char, 1, |e| {
@ -680,7 +679,6 @@ pub mod ptr_tests {
} }
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_ptr_array_each_null_ptr() { fn test_ptr_array_each_null_ptr() {
unsafe { unsafe {
array_each(0 as **libc::c_char, |e| { array_each(0 as **libc::c_char, |e| {

View file

@ -1007,7 +1007,6 @@ mod test {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_gen_int_from_fail() { fn test_gen_int_from_fail() {
let mut r = rng(); let mut r = rng();
r.gen_int_range(5, -2); r.gen_int_range(5, -2);
@ -1024,7 +1023,6 @@ mod test {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_gen_uint_range_fail() { fn test_gen_uint_range_fail() {
let mut r = rng(); let mut r = rng();
r.gen_uint_range(5u, 2u); r.gen_uint_range(5u, 2u);

View file

@ -751,7 +751,6 @@ mod test {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn push_bytes_fail_reset_len() { fn push_bytes_fail_reset_len() {
// push_bytes unsafely sets the vector length. This is testing that // push_bytes unsafely sets the vector length. This is testing that
// upon failure the length is reset correctly. // upon failure the length is reset correctly.
@ -806,7 +805,6 @@ mod test {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn read_to_end_error() { fn read_to_end_error() {
let mut reader = MockReader::new(); let mut reader = MockReader::new();
let count = Cell::new(0); let count = Cell::new(0);

View file

@ -136,7 +136,7 @@ mod test {
use cell::Cell; use cell::Cell;
use iterator::{Iterator, range}; use iterator::{Iterator, range};
#[test] #[ignore(cfg(windows))] #[should_fail] #[test] #[should_fail]
fn select_doesnt_get_trolled() { fn select_doesnt_get_trolled() {
select::<PortOne<()>>([]); select::<PortOne<()>>([]);
} }
@ -316,7 +316,7 @@ mod test {
} }
} }
#[test] #[ignore(cfg(windows))] #[test]
fn select_killed() { fn select_killed() {
do run_in_newsched_task { do run_in_newsched_task {
let (success_p, success_c) = oneshot::<bool>(); let (success_p, success_c) = oneshot::<bool>();

View file

@ -2451,7 +2451,6 @@ mod tests {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_pop_char_fail() { fn test_pop_char_fail() {
let mut data = ~""; let mut data = ~"";
let _cc3 = data.pop_char(); let _cc3 = data.pop_char();
@ -2767,7 +2766,6 @@ mod tests {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_slice_fail() { fn test_slice_fail() {
"中华Việt Nam".slice(0u, 2u); "中华Việt Nam".slice(0u, 2u);
} }
@ -2933,7 +2931,6 @@ mod tests {
#[test] #[test]
#[ignore(cfg(windows))]
fn test_from_bytes_fail() { fn test_from_bytes_fail() {
use str::not_utf8::cond; use str::not_utf8::cond;
@ -2983,7 +2980,6 @@ mod tests {
} }
#[test] #[test]
#[ignore(cfg(windows))]
#[should_fail] #[should_fail]
fn test_as_bytes_fail() { fn test_as_bytes_fail() {
// Don't double free. (I'm not sure if this exercises the // Don't double free. (I'm not sure if this exercises the

View file

@ -616,7 +616,7 @@ pub unsafe fn rekillable<U>(f: &fn() -> U) -> U {
} }
#[ignore(reason = "linked failure")] #[ignore(reason = "linked failure")]
#[test] #[ignore(cfg(windows))] #[test]
fn test_kill_unkillable_task() { fn test_kill_unkillable_task() {
use rt::test::*; use rt::test::*;
@ -637,7 +637,7 @@ fn test_kill_unkillable_task() {
} }
#[ignore(reason = "linked failure")] #[ignore(reason = "linked failure")]
#[test] #[ignore(cfg(windows))] #[test]
fn test_kill_rekillable_task() { fn test_kill_rekillable_task() {
use rt::test::*; use rt::test::*;
@ -658,7 +658,7 @@ fn test_kill_rekillable_task() {
} }
} }
#[test] #[should_fail] #[ignore(cfg(windows))] #[test] #[should_fail]
fn test_cant_dup_task_builder() { fn test_cant_dup_task_builder() {
let mut builder = task(); let mut builder = task();
builder.unlinked(); builder.unlinked();
@ -679,7 +679,7 @@ fn test_cant_dup_task_builder() {
fn block_forever() { let (po, _ch) = stream::<()>(); po.recv(); } fn block_forever() { let (po, _ch) = stream::<()>(); po.recv(); }
#[ignore(reason = "linked failure")] #[ignore(reason = "linked failure")]
#[test] #[ignore(cfg(windows))] #[test]
fn test_spawn_unlinked_unsup_no_fail_down() { // grandchild sends on a port fn test_spawn_unlinked_unsup_no_fail_down() { // grandchild sends on a port
use rt::test::run_in_newsched_task; use rt::test::run_in_newsched_task;
do run_in_newsched_task { do run_in_newsched_task {
@ -698,7 +698,7 @@ fn test_spawn_unlinked_unsup_no_fail_down() { // grandchild sends on a port
} }
} }
#[ignore(reason = "linked failure")] #[ignore(reason = "linked failure")]
#[test] #[ignore(cfg(windows))] #[test]
fn test_spawn_unlinked_unsup_no_fail_up() { // child unlinked fails fn test_spawn_unlinked_unsup_no_fail_up() { // child unlinked fails
use rt::test::run_in_newsched_task; use rt::test::run_in_newsched_task;
do run_in_newsched_task { do run_in_newsched_task {
@ -706,7 +706,7 @@ fn test_spawn_unlinked_unsup_no_fail_up() { // child unlinked fails
} }
} }
#[ignore(reason = "linked failure")] #[ignore(reason = "linked failure")]
#[test] #[ignore(cfg(windows))] #[test]
fn test_spawn_unlinked_sup_no_fail_up() { // child unlinked fails fn test_spawn_unlinked_sup_no_fail_up() { // child unlinked fails
use rt::test::run_in_newsched_task; use rt::test::run_in_newsched_task;
do run_in_newsched_task { do run_in_newsched_task {
@ -716,7 +716,7 @@ fn test_spawn_unlinked_sup_no_fail_up() { // child unlinked fails
} }
} }
#[ignore(reason = "linked failure")] #[ignore(reason = "linked failure")]
#[test] #[ignore(cfg(windows))] #[test]
fn test_spawn_unlinked_sup_fail_down() { fn test_spawn_unlinked_sup_fail_down() {
use rt::test::run_in_newsched_task; use rt::test::run_in_newsched_task;
do run_in_newsched_task { do run_in_newsched_task {
@ -729,7 +729,7 @@ fn test_spawn_unlinked_sup_fail_down() {
} }
#[ignore(reason = "linked failure")] #[ignore(reason = "linked failure")]
#[test] #[ignore(cfg(windows))] #[test]
fn test_spawn_linked_sup_fail_up() { // child fails; parent fails fn test_spawn_linked_sup_fail_up() { // child fails; parent fails
use rt::test::run_in_newsched_task; use rt::test::run_in_newsched_task;
do run_in_newsched_task { do run_in_newsched_task {
@ -750,7 +750,7 @@ fn test_spawn_linked_sup_fail_up() { // child fails; parent fails
} }
} }
#[ignore(reason = "linked failure")] #[ignore(reason = "linked failure")]
#[test] #[ignore(cfg(windows))] #[test]
fn test_spawn_linked_sup_fail_down() { // parent fails; child fails fn test_spawn_linked_sup_fail_down() { // parent fails; child fails
use rt::test::run_in_newsched_task; use rt::test::run_in_newsched_task;
do run_in_newsched_task { do run_in_newsched_task {
@ -767,7 +767,7 @@ fn test_spawn_linked_sup_fail_down() { // parent fails; child fails
} }
} }
#[ignore(reason = "linked failure")] #[ignore(reason = "linked failure")]
#[test] #[ignore(cfg(windows))] #[test]
fn test_spawn_linked_unsup_fail_up() { // child fails; parent fails fn test_spawn_linked_unsup_fail_up() { // child fails; parent fails
use rt::test::run_in_newsched_task; use rt::test::run_in_newsched_task;
do run_in_newsched_task { do run_in_newsched_task {
@ -780,7 +780,7 @@ fn test_spawn_linked_unsup_fail_up() { // child fails; parent fails
} }
} }
#[ignore(reason = "linked failure")] #[ignore(reason = "linked failure")]
#[test] #[ignore(cfg(windows))] #[test]
fn test_spawn_linked_unsup_fail_down() { // parent fails; child fails fn test_spawn_linked_unsup_fail_down() { // parent fails; child fails
use rt::test::run_in_newsched_task; use rt::test::run_in_newsched_task;
do run_in_newsched_task { do run_in_newsched_task {
@ -793,7 +793,7 @@ fn test_spawn_linked_unsup_fail_down() { // parent fails; child fails
} }
} }
#[ignore(reason = "linked failure")] #[ignore(reason = "linked failure")]
#[test] #[ignore(cfg(windows))] #[test]
fn test_spawn_linked_unsup_default_opts() { // parent fails; child fails fn test_spawn_linked_unsup_default_opts() { // parent fails; child fails
use rt::test::run_in_newsched_task; use rt::test::run_in_newsched_task;
do run_in_newsched_task { do run_in_newsched_task {
@ -812,7 +812,7 @@ fn test_spawn_linked_unsup_default_opts() { // parent fails; child fails
// when the middle task exits successfully early before kill signals are sent. // when the middle task exits successfully early before kill signals are sent.
#[ignore(reason = "linked failure")] #[ignore(reason = "linked failure")]
#[test] #[ignore(cfg(windows))] #[test]
fn test_spawn_failure_propagate_grandchild() { fn test_spawn_failure_propagate_grandchild() {
use rt::test::run_in_newsched_task; use rt::test::run_in_newsched_task;
do run_in_newsched_task { do run_in_newsched_task {
@ -829,7 +829,7 @@ fn test_spawn_failure_propagate_grandchild() {
} }
#[ignore(reason = "linked failure")] #[ignore(reason = "linked failure")]
#[test] #[ignore(cfg(windows))] #[test]
fn test_spawn_failure_propagate_secondborn() { fn test_spawn_failure_propagate_secondborn() {
use rt::test::run_in_newsched_task; use rt::test::run_in_newsched_task;
do run_in_newsched_task { do run_in_newsched_task {
@ -846,7 +846,7 @@ fn test_spawn_failure_propagate_secondborn() {
} }
#[ignore(reason = "linked failure")] #[ignore(reason = "linked failure")]
#[test] #[ignore(cfg(windows))] #[test]
fn test_spawn_failure_propagate_nephew_or_niece() { fn test_spawn_failure_propagate_nephew_or_niece() {
use rt::test::run_in_newsched_task; use rt::test::run_in_newsched_task;
do run_in_newsched_task { do run_in_newsched_task {
@ -863,7 +863,7 @@ fn test_spawn_failure_propagate_nephew_or_niece() {
} }
#[ignore(reason = "linked failure")] #[ignore(reason = "linked failure")]
#[test] #[ignore(cfg(windows))] #[test]
fn test_spawn_linked_sup_propagate_sibling() { fn test_spawn_linked_sup_propagate_sibling() {
use rt::test::run_in_newsched_task; use rt::test::run_in_newsched_task;
do run_in_newsched_task { do run_in_newsched_task {
@ -941,7 +941,6 @@ fn test_add_wrapper() {
} }
#[test] #[test]
#[ignore(cfg(windows))]
fn test_future_result() { fn test_future_result() {
let mut result = None; let mut result = None;
let mut builder = task(); let mut builder = task();
@ -959,7 +958,7 @@ fn test_future_result() {
assert_eq!(result.unwrap().recv(), Failure); assert_eq!(result.unwrap().recv(), Failure);
} }
#[test] #[should_fail] #[ignore(cfg(windows))] #[test] #[should_fail]
fn test_back_to_the_future_result() { fn test_back_to_the_future_result() {
let mut builder = task(); let mut builder = task();
builder.future_result(util::ignore); builder.future_result(util::ignore);
@ -977,7 +976,6 @@ fn test_try_success() {
} }
#[test] #[test]
#[ignore(cfg(windows))]
fn test_try_fail() { fn test_try_fail() {
match do try { match do try {
fail!() fail!()
@ -1159,7 +1157,6 @@ fn test_avoid_copying_the_body_unlinked() {
#[ignore(reason = "linked failure")] #[ignore(reason = "linked failure")]
#[test] #[test]
#[ignore(cfg(windows))]
#[should_fail] #[should_fail]
fn test_unkillable() { fn test_unkillable() {
let (po, ch) = stream(); let (po, ch) = stream();
@ -1195,7 +1192,6 @@ fn test_unkillable() {
#[ignore(reason = "linked failure")] #[ignore(reason = "linked failure")]
#[test] #[test]
#[ignore(cfg(windows))]
#[should_fail] #[should_fail]
fn test_unkillable_nested() { fn test_unkillable_nested() {
let (po, ch) = comm::stream(); let (po, ch) = comm::stream();
@ -1261,7 +1257,7 @@ fn test_simple_newsched_spawn() {
} }
#[ignore(reason = "linked failure")] #[ignore(reason = "linked failure")]
#[test] #[ignore(cfg(windows))] #[test]
fn test_spawn_watched() { fn test_spawn_watched() {
use rt::test::run_in_newsched_task; use rt::test::run_in_newsched_task;
do run_in_newsched_task { do run_in_newsched_task {
@ -1284,7 +1280,7 @@ fn test_spawn_watched() {
} }
#[ignore(reason = "linked failure")] #[ignore(reason = "linked failure")]
#[test] #[ignore(cfg(windows))] #[test]
fn test_indestructible() { fn test_indestructible() {
use rt::test::run_in_newsched_task; use rt::test::run_in_newsched_task;
do run_in_newsched_task { do run_in_newsched_task {

View file

@ -722,7 +722,6 @@ fn test_spawn_raw_simple() {
} }
#[test] #[test]
#[ignore(cfg(windows))]
fn test_spawn_raw_unsupervise() { fn test_spawn_raw_unsupervise() {
let opts = task::TaskOpts { let opts = task::TaskOpts {
linked: false, linked: false,
@ -736,7 +735,6 @@ fn test_spawn_raw_unsupervise() {
} }
#[test] #[test]
#[ignore(cfg(windows))]
fn test_spawn_raw_notify_success() { fn test_spawn_raw_notify_success() {
let (notify_po, notify_ch) = comm::stream(); let (notify_po, notify_ch) = comm::stream();
@ -750,7 +748,6 @@ fn test_spawn_raw_notify_success() {
} }
#[test] #[test]
#[ignore(cfg(windows))]
fn test_spawn_raw_notify_failure() { fn test_spawn_raw_notify_failure() {
// New bindings for these // New bindings for these
let (notify_po, notify_ch) = comm::stream(); let (notify_po, notify_ch) = comm::stream();

View file

@ -441,14 +441,12 @@ pub mod ct {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_parse_type_missing() { fn test_parse_type_missing() {
parse_type("", 0, 0, die); parse_type("", 0, 0, die);
} }
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_parse_type_unknown() { fn test_parse_type_unknown() {
parse_type("!", 0, 1, die); parse_type("!", 0, 1, die);
} }

View file

@ -83,7 +83,6 @@ fn test_success() {
} }
#[test] #[test]
#[ignore(cfg(windows))]
#[should_fail] #[should_fail]
fn test_fail() { fn test_fail() {
let mut i = 0; let mut i = 0;

View file

@ -481,7 +481,7 @@ mod tests {
} }
} }
#[test] #[should_fail] #[ignore(cfg(windows))] #[test] #[should_fail]
fn exclusive_new_poison() { fn exclusive_new_poison() {
unsafe { unsafe {
// Tests that if one task fails inside of an Exclusive::new, subsequent // Tests that if one task fails inside of an Exclusive::new, subsequent
@ -599,7 +599,7 @@ mod tests {
res.unwrap().recv(); res.unwrap().recv();
} }
#[test] #[should_fail] #[ignore(cfg(windows))] #[test] #[should_fail]
fn exclusive_new_unwrap_conflict() { fn exclusive_new_unwrap_conflict() {
let x = Exclusive::new(~~"hello"); let x = Exclusive::new(~~"hello");
let x2 = Cell::new(x.clone()); let x2 = Cell::new(x.clone());
@ -615,7 +615,7 @@ mod tests {
assert!(res.unwrap().recv() == task::Success); assert!(res.unwrap().recv() == task::Success);
} }
#[test] #[ignore(cfg(windows))] #[test]
fn exclusive_new_unwrap_deadlock() { fn exclusive_new_unwrap_deadlock() {
// This is not guaranteed to get to the deadlock before being killed, // This is not guaranteed to get to the deadlock before being killed,
// but it will show up sometimes, and if the deadlock were not there, // but it will show up sometimes, and if the deadlock were not there,

View file

@ -2521,7 +2521,6 @@ mod tests {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_head_empty() { fn test_head_empty() {
let a: ~[int] = ~[]; let a: ~[int] = ~[];
a.head(); a.head();
@ -2547,7 +2546,6 @@ mod tests {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_tail_empty() { fn test_tail_empty() {
let a: ~[int] = ~[]; let a: ~[int] = ~[];
a.tail(); a.tail();
@ -2563,7 +2561,6 @@ mod tests {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_tailn_empty() { fn test_tailn_empty() {
let a: ~[int] = ~[]; let a: ~[int] = ~[];
a.tailn(2); a.tailn(2);
@ -2579,7 +2576,6 @@ mod tests {
#[init] #[init]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_init_empty() { fn test_init_empty() {
let a: ~[int] = ~[]; let a: ~[int] = ~[];
a.init(); a.init();
@ -2595,7 +2591,6 @@ mod tests {
#[init] #[init]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_initn_empty() { fn test_initn_empty() {
let a: ~[int] = ~[]; let a: ~[int] = ~[];
a.initn(2); a.initn(2);
@ -2611,7 +2606,6 @@ mod tests {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_last_empty() { fn test_last_empty() {
let a: ~[int] = ~[]; let a: ~[int] = ~[];
a.last(); a.last();
@ -3079,7 +3073,6 @@ mod tests {
} }
#[test] #[test]
#[ignore(cfg(windows))]
#[should_fail] #[should_fail]
fn test_insert_oob() { fn test_insert_oob() {
let mut a = ~[1, 2, 3]; let mut a = ~[1, 2, 3];
@ -3102,7 +3095,6 @@ mod tests {
} }
#[test] #[test]
#[ignore(cfg(windows))]
#[should_fail] #[should_fail]
fn test_remove_oob() { fn test_remove_oob() {
let mut a = ~[1, 2, 3]; let mut a = ~[1, 2, 3];
@ -3130,7 +3122,6 @@ mod tests {
#[test] #[test]
#[ignore(windows)]
#[should_fail] #[should_fail]
fn test_from_fn_fail() { fn test_from_fn_fail() {
do from_fn(100) |v| { do from_fn(100) |v| {
@ -3140,7 +3131,6 @@ mod tests {
} }
#[test] #[test]
#[ignore(windows)]
#[should_fail] #[should_fail]
fn test_build_fail() { fn test_build_fail() {
do build |push| { do build |push| {
@ -3153,7 +3143,6 @@ mod tests {
} }
#[test] #[test]
#[ignore(windows)]
#[should_fail] #[should_fail]
fn test_grow_fn_fail() { fn test_grow_fn_fail() {
let mut v = ~[]; let mut v = ~[];
@ -3166,7 +3155,6 @@ mod tests {
} }
#[test] #[test]
#[ignore(windows)]
#[should_fail] #[should_fail]
fn test_map_fail() { fn test_map_fail() {
let v = [(~0, @0), (~0, @0), (~0, @0), (~0, @0)]; let v = [(~0, @0), (~0, @0), (~0, @0), (~0, @0)];
@ -3181,7 +3169,6 @@ mod tests {
} }
#[test] #[test]
#[ignore(windows)]
#[should_fail] #[should_fail]
fn test_flat_map_fail() { fn test_flat_map_fail() {
let v = [(~0, @0), (~0, @0), (~0, @0), (~0, @0)]; let v = [(~0, @0), (~0, @0), (~0, @0), (~0, @0)];
@ -3196,7 +3183,6 @@ mod tests {
} }
#[test] #[test]
#[ignore(windows)]
#[should_fail] #[should_fail]
fn test_rposition_fail() { fn test_rposition_fail() {
let v = [(~0, @0), (~0, @0), (~0, @0), (~0, @0)]; let v = [(~0, @0), (~0, @0), (~0, @0), (~0, @0)];
@ -3211,7 +3197,6 @@ mod tests {
} }
#[test] #[test]
#[ignore(windows)]
#[should_fail] #[should_fail]
fn test_permute_fail() { fn test_permute_fail() {
let v = [(~0, @0), (~0, @0), (~0, @0), (~0, @0)]; let v = [(~0, @0), (~0, @0), (~0, @0), (~0, @0)];
@ -3226,7 +3211,6 @@ mod tests {
} }
#[test] #[test]
#[ignore(windows)]
#[should_fail] #[should_fail]
fn test_as_imm_buf_fail() { fn test_as_imm_buf_fail() {
let v = [(~0, @0), (~0, @0), (~0, @0), (~0, @0)]; let v = [(~0, @0), (~0, @0), (~0, @0), (~0, @0)];
@ -3236,7 +3220,6 @@ mod tests {
} }
#[test] #[test]
#[ignore(cfg(windows))]
#[should_fail] #[should_fail]
fn test_as_mut_buf_fail() { fn test_as_mut_buf_fail() {
let mut v = [(~0, @0), (~0, @0), (~0, @0), (~0, @0)]; let mut v = [(~0, @0), (~0, @0), (~0, @0), (~0, @0)];
@ -3247,7 +3230,6 @@ mod tests {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_copy_memory_oob() { fn test_copy_memory_oob() {
unsafe { unsafe {
let mut a = [1, 2, 3, 4]; let mut a = [1, 2, 3, 4];
@ -3469,7 +3451,6 @@ mod tests {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_window_iterator_0() { fn test_window_iterator_0() {
let v = &[1i,2,3,4]; let v = &[1i,2,3,4];
let _it = v.window_iter(0); let _it = v.window_iter(0);
@ -3494,7 +3475,6 @@ mod tests {
#[test] #[test]
#[should_fail] #[should_fail]
#[ignore(cfg(windows))]
fn test_chunk_iterator_0() { fn test_chunk_iterator_0() {
let v = &[1i,2,3,4]; let v = &[1i,2,3,4];
let _it = v.chunk_iter(0); let _it = v.chunk_iter(0);