test: Ignore tcp-connect-timeout on freebsd
The BSD builders are failing with a different error that is not a timeout error (Connection reset by peer), so this test isn't really all that useful on freebsd. Due to a lack of a better idea of how to test a connect timeout, this test is going to just be ignored for now.
This commit is contained in:
parent
0966ee5285
commit
aa849fb6ca
@ -29,7 +29,7 @@ fn start(argc: int, argv: **u8) -> int {
|
||||
}
|
||||
|
||||
macro_rules! iotest (
|
||||
{ fn $name:ident() $b:block $($a:attr)* } => (
|
||||
{ fn $name:ident() $b:block $(#[$a:meta])* } => (
|
||||
mod $name {
|
||||
#![allow(unused_imports)]
|
||||
|
||||
@ -40,8 +40,8 @@ mod $name {
|
||||
|
||||
fn f() $b
|
||||
|
||||
$($a)* #[test] fn green() { f() }
|
||||
$($a)* #[test] fn native() {
|
||||
$(#[$a])* #[test] fn green() { f() }
|
||||
$(#[$a])* #[test] fn native() {
|
||||
use native;
|
||||
let (tx, rx) = channel();
|
||||
native::task::spawn(proc() { tx.send(f()) });
|
||||
@ -76,7 +76,7 @@ fn f() $b
|
||||
}
|
||||
}
|
||||
fail!("never timed out!");
|
||||
})
|
||||
} #[ignore(cfg(target_os = "freebsd"))])
|
||||
|
||||
iotest!(fn timeout_success() {
|
||||
let addr = next_test_ip4();
|
||||
|
Loading…
Reference in New Issue
Block a user