apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From roo...@apache.org
Subject svn commit: r376433 - /apr/apr/trunk/test/testsock.c
Date Thu, 09 Feb 2006 20:38:31 GMT
Author: rooneg
Date: Thu Feb  9 12:38:29 2006
New Revision: 376433

URL: http://svn.apache.org/viewcvs?rev=376433&view=rev
Log:
Don't error out if we get back EINPROGRESS from a nonblocking connect,
that's the expected behavior.

* test/testsock.c
  (test_get_addr): Look for the expected EINPROGRESS error and only bail
   when we get something else from apr_socket_connect.

Modified:
    apr/apr/trunk/test/testsock.c

Modified: apr/apr/trunk/test/testsock.c
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/test/testsock.c?rev=376433&r1=376432&r2=376433&view=diff
==============================================================================
--- apr/apr/trunk/test/testsock.c (original)
+++ apr/apr/trunk/test/testsock.c Thu Feb  9 12:38:29 2006
@@ -255,8 +255,8 @@
                        apr_socket_opt_set(cd, APR_SO_NONBLOCK, 1));
 
     rv = apr_socket_connect(cd, sa);
-    APR_ASSERT_SUCCESS(tc, "make the connection", rv);
-    if (rv)
+    ABTS_INT_EQUAL(tc, 1, APR_STATUS_IS_EINPROGRESS(rv));
+    if (rv && ! APR_STATUS_IS_EINPROGRESS(rv))
         return;
 
     APR_ASSERT_SUCCESS(tc, "accept connection",



Mime
View raw message