diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-04-22 13:03:54 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-04-23 08:40:41 -0700 |
| commit | aa849fb6ca1f8a9019e97e274c62a3bcd645936d (patch) | |
| tree | d45a583e75453a562cc83ac6f9d88718dce517e5 /src | |
| parent | 0966ee5285e9cfd26edf6a1e53bed5eeb8114374 (diff) | |
| download | rust-aa849fb6ca1f8a9019e97e274c62a3bcd645936d.tar.gz rust-aa849fb6ca1f8a9019e97e274c62a3bcd645936d.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/run-pass/tcp-connect-timeouts.rs | 8 |
1 files 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 @@ 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(); |
