apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1309381 - /apr/apr/branches/1.4.x/test/testsockets.c
Date Wed, 04 Apr 2012 13:48:09 GMT
Author: mturk
Date: Wed Apr  4 13:48:08 2012
New Revision: 1309381

URL: http://svn.apache.org/viewvc?rev=1309381&view=rev
Log:
Test apr_mcast_hops. Without backporting the patch prom trunk the testsockets fails with EINVAL
(at least on linux)

Modified:
    apr/apr/branches/1.4.x/test/testsockets.c

Modified: apr/apr/branches/1.4.x/test/testsockets.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.4.x/test/testsockets.c?rev=1309381&r1=1309380&r2=1309381&view=diff
==============================================================================
--- apr/apr/branches/1.4.x/test/testsockets.c (original)
+++ apr/apr/branches/1.4.x/test/testsockets.c Wed Apr  4 13:48:08 2012
@@ -131,6 +131,10 @@ static void sendto_receivefrom_helper(ab
     APR_ASSERT_SUCCESS(tc, "Could not bind socket", rv);
     if (rv != APR_SUCCESS)
         return;
+    rv = apr_mcast_hops(sock, 10);
+    APR_ASSERT_SUCCESS(tc, "Could not set multicast hops", rv);
+    if (rv != APR_SUCCESS)
+        return;
 
     rv = apr_socket_bind(sock2, from);
     APR_ASSERT_SUCCESS(tc, "Could not bind second socket", rv);



Mime
View raw message