diff options
author | Steve Huston <shuston@riverace.com> | 1997-11-06 17:56:33 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 1997-11-06 17:56:33 +0000 |
commit | a0e329ac6bb00059436ad718131c1fe5b36034dd (patch) | |
tree | 7dcb889c2b41af6d8e7e1942dfa2521db97fad6e /tests | |
parent | e519680d66ec833de73174820c18aab51fba0616 (diff) | |
download | ATCD-a0e329ac6bb00059436ad718131c1fe5b36034dd.tar.gz |
Better checks to get a proper host to test, new test port (42000).
Diffstat (limited to 'tests')
-rw-r--r-- | tests/SOCK_Connector_Test.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/SOCK_Connector_Test.cpp b/tests/SOCK_Connector_Test.cpp index 66f07ca6c98..e6c4bb6239b 100644 --- a/tests/SOCK_Connector_Test.cpp +++ b/tests/SOCK_Connector_Test.cpp @@ -57,9 +57,13 @@ find_another_host (char other_host[]) { if (ACE_OS::strcmp (h->h_name, "localhost") == 0) continue; + // AIX just _has_ to be different + if (ACE_OS::strcmp (h->h_name, "loopback") == 0) + continue; // If not me - if (ACE_OS::strcmp (h->h_name, other_host) != 0) + if (ACE_OS::strcmp (h->h_name, other_host) != 0 && + ACE_OS::strcmp (h->h_name, un.nodename) != 0 ) { ACE_OS::strcpy (other_host, h->h_name); break; @@ -82,7 +86,7 @@ fail_no_listener_nonblocking (void) find_another_host (test_host); ACE_DEBUG ((LM_DEBUG, "Testing to host %s\n", test_host)); - nobody_home.set ((u_short) 4242, test_host); + nobody_home.set ((u_short) 42000, test_host); status = con.connect (sock, nobody_home, &nonblock); // Need a port that will fail. |