getting rid of ip4 port byval test... 2064 workarounds in place, for now

This commit is contained in:
Jeff Olson 2012-04-02 11:46:15 -07:00 committed by Brian Anderson
parent 625c518eec
commit f18991d900

View File

@ -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();
}