From f18991d90093f4c34cadb418c432bdcf414c5b63 Mon Sep 17 00:00:00 2001 From: Jeff Olson Date: Mon, 2 Apr 2012 11:46:15 -0700 Subject: [PATCH] getting rid of ip4 port byval test... 2064 workarounds in place, for now --- src/libstd/uv.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/libstd/uv.rs b/src/libstd/uv.rs index 5038b35d29c..6f89f607bc0 100644 --- a/src/libstd/uv.rs +++ b/src/libstd/uv.rs @@ -383,9 +383,6 @@ native mod rustrt { fn rust_uv_strerror(err: *uv_err_t) -> *libc::c_char; // FIXME ref #2064 fn rust_uv_err_name(err: *uv_err_t) -> *libc::c_char; - fn rust_uv_ip4_test_verify_port_val(++addr: sockaddr_in, - expected: libc::c_uint) - -> bool; fn rust_uv_ip4_addr(ip: *u8, port: libc::c_int) -> sockaddr_in; // FIXME ref #2064 @@ -1698,18 +1695,3 @@ fn test_uv_struct_size_uv_async_t() { io::println(output); assert native_handle_size as uint == rust_handle_size; } - -fn impl_uv_byval_test() unsafe { - let addr = direct::ip4_addr("173.194.33.111", 80); - io::println(#fmt("after build addr in rust. port: %u", - addr.sin_port as uint)); - assert rustrt::rust_uv_ip4_test_verify_port_val(addr, - addr.sin_port as libc::c_uint); - io::println(#fmt("after build addr in rust. port: %u", - addr.sin_port as uint)); -} -#[test] -#[ignore(cfg(target_os = "freebsd"))] -fn test_uv_ip4_byval_passing_test() { - impl_uv_byval_test(); -}