From aa849fb6ca1f8a9019e97e274c62a3bcd645936d Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 22 Apr 2014 13:03:54 -0700 Subject: [PATCH] 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. --- src/test/run-pass/tcp-connect-timeouts.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/run-pass/tcp-connect-timeouts.rs b/src/test/run-pass/tcp-connect-timeouts.rs index 26f9b2ea6b7..68db134419a 100644 --- a/src/test/run-pass/tcp-connect-timeouts.rs +++ b/src/test/run-pass/tcp-connect-timeouts.rs @@ -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();