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

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

View file

@ -83,7 +83,6 @@ fn test_success() {
}
#[test]
#[ignore(cfg(windows))]
#[should_fail]
fn test_fail() {
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() {
unsafe {
// Tests that if one task fails inside of an Exclusive::new, subsequent
@ -599,7 +599,7 @@ mod tests {
res.unwrap().recv();
}
#[test] #[should_fail] #[ignore(cfg(windows))]
#[test] #[should_fail]
fn exclusive_new_unwrap_conflict() {
let x = Exclusive::new(~~"hello");
let x2 = Cell::new(x.clone());
@ -615,7 +615,7 @@ mod tests {
assert!(res.unwrap().recv() == task::Success);
}
#[test] #[ignore(cfg(windows))]
#[test]
fn exclusive_new_unwrap_deadlock() {
// 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,