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:
Alex Crichton 2014-04-22 13:03:54 -07:00
parent 0966ee5285
commit aa849fb6ca
1 changed files with 4 additions and 4 deletions

View File

@ -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 @@ macro_rules! iotest (
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 @@ iotest!(fn eventual_timeout() {
}
}
fail!("never timed out!");
})
} #[ignore(cfg(target_os = "freebsd"))])
iotest!(fn timeout_success() {
let addr = next_test_ip4();