summaryrefslogtreecommitdiff
path: root/tests/SOCK_Connector_Test.cpp
diff options
context:
space:
mode:
authorsumedh <sumedh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-11-07 22:04:49 +0000
committersumedh <sumedh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-11-07 22:04:49 +0000
commit9d1fcaa003751b155d9244004ba4dada48630ff7 (patch)
tree69d27856244fcee80c1b9ad2a08a1aedb7ae7383 /tests/SOCK_Connector_Test.cpp
parent04a3567704180c83e5d962956ed21e27c906e04b (diff)
downloadATCD-9d1fcaa003751b155d9244004ba4dada48630ff7.tar.gz
*** empty log message ***
Diffstat (limited to 'tests/SOCK_Connector_Test.cpp')
-rw-r--r--tests/SOCK_Connector_Test.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/SOCK_Connector_Test.cpp b/tests/SOCK_Connector_Test.cpp
index 8f39dacd7c6..fe96a8a0758 100644
--- a/tests/SOCK_Connector_Test.cpp
+++ b/tests/SOCK_Connector_Test.cpp
@@ -71,7 +71,7 @@ find_another_host (char other_host[])
}
endhostent ();
-#endif /* !defined (ACE_WIN32) && !defined (VXWORKS) */
+#endif /* !defined (ACE_WIN32) && !defined (VXWORKS) !defined (ACE_NETBSD) */
}
static int
@@ -92,7 +92,9 @@ fail_no_listener_nonblocking (void)
// Need a port that will fail.
ACE_ASSERT (status == -1);
- if (errno == EWOULDBLOCK)
+ // On some systems, a failed connect to localhost will return
+ // ECONNREFUSED directly, instead of EWOULDBLOCK. That is also fine.
+ if (errno == EWOULDBLOCK || errno == ECONNREFUSED)
{
status = con.complete (sock);