Cleanup the existing platform-specific ignored tests
This commit is contained in:
parent
f7ebe23ae1
commit
ce1be4d9a9
4 changed files with 11 additions and 55 deletions
|
@ -4,9 +4,9 @@ import std::io;
|
||||||
import std::str;
|
import std::str;
|
||||||
import std::result;
|
import std::result;
|
||||||
|
|
||||||
#[cfg(target_os = "linux")]
|
// FIXME (726)
|
||||||
#[cfg(target_os = "win32")]
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[ignore(cfg(target_os = "macos"))]
|
||||||
fn test_simple() {
|
fn test_simple() {
|
||||||
let tmpfile: str = "test/run-pass/lib-io-test-simple.tmp";
|
let tmpfile: str = "test/run-pass/lib-io-test-simple.tmp";
|
||||||
log tmpfile;
|
log tmpfile;
|
||||||
|
@ -23,12 +23,6 @@ fn test_simple() {
|
||||||
assert (str::eq(frood, frood2));
|
assert (str::eq(frood, frood2));
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME (726)
|
|
||||||
#[cfg(target_os = "macos")]
|
|
||||||
#[test]
|
|
||||||
#[ignore]
|
|
||||||
fn test_simple() { }
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn file_reader_not_exist() {
|
fn file_reader_not_exist() {
|
||||||
alt io::file_reader("not a file") {
|
alt io::file_reader("not a file") {
|
||||||
|
@ -39,9 +33,9 @@ fn file_reader_not_exist() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_os = "linux")]
|
|
||||||
#[cfg(target_os = "win32")]
|
|
||||||
#[test]
|
#[test]
|
||||||
|
// FIXME (726)
|
||||||
|
#[ignore(cfg(target_os = "macos"))]
|
||||||
fn file_buf_writer_bad_name() {
|
fn file_buf_writer_bad_name() {
|
||||||
alt io::file_buf_writer("/?", []) {
|
alt io::file_buf_writer("/?", []) {
|
||||||
result::err(e) {
|
result::err(e) {
|
||||||
|
@ -51,15 +45,9 @@ fn file_buf_writer_bad_name() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
// FIXME (726)
|
// FIXME (726)
|
||||||
#[cfg(target_os = "macos")]
|
#[ignore(cfg(target_os = "macos"))]
|
||||||
#[test]
|
|
||||||
#[ignore]
|
|
||||||
fn file_buf_writer_bad_name() { }
|
|
||||||
|
|
||||||
#[cfg(target_os = "linux")]
|
|
||||||
#[cfg(target_os = "win32")]
|
|
||||||
#[test]
|
|
||||||
fn buffered_file_buf_writer_bad_name() {
|
fn buffered_file_buf_writer_bad_name() {
|
||||||
alt io::buffered_file_buf_writer("/?") {
|
alt io::buffered_file_buf_writer("/?") {
|
||||||
result::err(e) {
|
result::err(e) {
|
||||||
|
@ -68,9 +56,3 @@ fn buffered_file_buf_writer_bad_name() {
|
||||||
result::ok(_) { fail; }
|
result::ok(_) { fail; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME (726)
|
|
||||||
#[cfg(target_os = "macos")]
|
|
||||||
#[test]
|
|
||||||
#[ignore]
|
|
||||||
fn buffered_file_buf_writer_bad_name() { }
|
|
||||||
|
|
|
@ -7,21 +7,13 @@ import std::str;
|
||||||
import std::vec;
|
import std::vec;
|
||||||
|
|
||||||
// Regression test for memory leaks
|
// Regression test for memory leaks
|
||||||
#[cfg(target_os = "linux")]
|
#[ignore(cfg(target_os = "win32"))] // FIXME
|
||||||
#[cfg(target_os = "macos")]
|
|
||||||
#[test]
|
|
||||||
fn test_leaks() {
|
fn test_leaks() {
|
||||||
run::run_program("echo", []);
|
run::run_program("echo", []);
|
||||||
run::start_program("echo", []);
|
run::start_program("echo", []);
|
||||||
run::program_output("echo", []);
|
run::program_output("echo", []);
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME
|
|
||||||
#[cfg(target_os = "win32")]
|
|
||||||
#[test]
|
|
||||||
#[ignore]
|
|
||||||
fn test_leaks() { }
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_pipes() unsafe {
|
fn test_pipes() unsafe {
|
||||||
let pipe_in = os::pipe();
|
let pipe_in = os::pipe();
|
||||||
|
|
|
@ -7,13 +7,7 @@ fn test_sleep() { task::sleep(1000000u); }
|
||||||
|
|
||||||
// FIXME: Leaks on windows
|
// FIXME: Leaks on windows
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(target_os = "win32")]
|
#[ignore(cfg(target_os = "win32"))]
|
||||||
#[ignore]
|
|
||||||
fn test_unsupervise() { }
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
#[cfg(target_os = "macos")]
|
|
||||||
#[cfg(target_os = "linux")]
|
|
||||||
fn test_unsupervise() {
|
fn test_unsupervise() {
|
||||||
fn f(&&_i: ()) { task::unsupervise(); fail; }
|
fn f(&&_i: ()) { task::unsupervise(); fail; }
|
||||||
task::spawn((), f);
|
task::spawn((), f);
|
||||||
|
@ -48,13 +42,7 @@ fn test_join_chan() {
|
||||||
|
|
||||||
// FIXME: Leaks on windows
|
// FIXME: Leaks on windows
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(target_os = "win32")]
|
#[ignore(cfg(target_os = "win32"))]
|
||||||
#[ignore]
|
|
||||||
fn test_join_chan_fail() { }
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
#[cfg(target_os = "macos")]
|
|
||||||
#[cfg(target_os = "linux")]
|
|
||||||
fn test_join_chan_fail() {
|
fn test_join_chan_fail() {
|
||||||
fn failer(&&_i: ()) { task::unsupervise(); fail }
|
fn failer(&&_i: ()) { task::unsupervise(); fail }
|
||||||
|
|
||||||
|
|
|
@ -450,9 +450,9 @@ fn init() {
|
||||||
assert v == [1, 2];
|
assert v == [1, 2];
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_os = "linux")]
|
|
||||||
#[cfg(target_os = "mac")]
|
|
||||||
#[test]
|
#[test]
|
||||||
|
// FIXME: Windows can't undwind
|
||||||
|
#[ignore(cfg(target_os = "win32"))]
|
||||||
fn init_empty() {
|
fn init_empty() {
|
||||||
|
|
||||||
let r = task::join(
|
let r = task::join(
|
||||||
|
@ -463,12 +463,6 @@ fn init_empty() {
|
||||||
assert r == task::tr_failure
|
assert r == task::tr_failure
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: Windows can't undwind
|
|
||||||
#[cfg(target_os = "win32")]
|
|
||||||
#[test]
|
|
||||||
#[ignore]
|
|
||||||
fn init_empty() { }
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn concat() {
|
fn concat() {
|
||||||
assert vec::concat([[1], [2,3]]) == [1, 2, 3];
|
assert vec::concat([[1], [2,3]]) == [1, 2, 3];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue