Ignore should_fail tests on windows

This commit is contained in:
Brian Anderson 2011-11-01 17:22:32 -07:00
parent 76077a9fb7
commit eb8995e2fa
3 changed files with 10 additions and 0 deletions

View File

@ -29,12 +29,14 @@ fn test_to_digit() {
#[test]
#[should_fail]
#[ignore(cfg(target_os = "win32"))]
fn test_to_digit_fail_1() {
char::to_digit(' ');
}
#[test]
#[should_fail]
#[ignore(cfg(target_os = "win32"))]
fn test_to_digit_fail_2() {
char::to_digit('$');
}

View File

@ -21,12 +21,14 @@ fn test_from_str() {
#[test]
#[should_fail]
#[ignore(cfg(target_os = "win32"))]
fn test_from_str_fail_1() {
int::from_str(" ");
}
#[test]
#[should_fail]
#[ignore(cfg(target_os = "win32"))]
fn test_from_str_fail_2() {
int::from_str("x");
}
@ -54,12 +56,14 @@ fn test_parse_buf() {
#[test]
#[should_fail]
#[ignore(cfg(target_os = "win32"))]
fn test_parse_buf_fail_1() {
int::parse_buf(bytes("Z"), 35u);
}
#[test]
#[should_fail]
#[ignore(cfg(target_os = "win32"))]
fn test_parse_buf_fail_2() {
int::parse_buf(bytes("-9"), 2u);
}

View File

@ -16,12 +16,14 @@ fn test_from_str() {
#[test]
#[should_fail]
#[ignore(cfg(target_os = "win32"))]
fn test_from_str_fail_1() {
uint::from_str(" ");
}
#[test]
#[should_fail]
#[ignore(cfg(target_os = "win32"))]
fn test_from_str_fail_2() {
uint::from_str("x");
}
@ -38,12 +40,14 @@ fn test_parse_buf() {
#[test]
#[should_fail]
#[ignore(cfg(target_os = "win32"))]
fn test_parse_buf_fail_1() {
uint::parse_buf(bytes("Z"), 10u);
}
#[test]
#[should_fail]
#[ignore(cfg(target_os = "win32"))]
fn test_parse_buf_fail_2() {
uint::parse_buf(bytes("_"), 2u);
}