Commit a7302b3d authored by Pekka Pessi's avatar Pekka Pessi
Browse files

Fixed win32 socket handling problems in su/su_root_test and torture_su_port.c.

darcs-hash:20051101120505-65a35-eb0835a41360d724eb397b76ecc58d57599f92ba.gz
parent 05d92d03
......@@ -110,6 +110,11 @@ int init_test(root_test_t *rt)
TEST_1(bind(ep->s, &su->su_sa, ep->addrlen) != -1);
TEST_1(su_wait_create(ep->wait, ep->s, SU_WAIT_IN|SU_WAIT_ERR) != -1);
TEST_1(getsockname(ep->s, &ep->addr->su_sa, &ep->addrlen) != -1);
if (SU_HAS_INADDR_ANY(ep->addr)) {
inet_pton(su->su_family,
su->su_family == AF_INET ? "127.0.0.1" : "::1",
SU_ADDR(su));
}
}
END();
......
......@@ -191,7 +191,11 @@ int main(int argc, char *argv[])
usage();
}
su_init();
retval |= test_register(); fflush(stdout);
su_deinit();
return retval;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment