* test/testsockets.c (sendto_receivefrom_helper): Add descriptive
  error message on failure case.


git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1891308 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/test/testsockets.c b/test/testsockets.c
index 2a7499a..5b0db3e 100644
--- a/test/testsockets.c
+++ b/test/testsockets.c
@@ -18,6 +18,7 @@
 #include "apr_errno.h"
 #include "apr_general.h"
 #include "apr_lib.h"
+#include "apr_strings.h"
 #include "testutil.h"
 
 #define STRLEN 21
@@ -128,7 +129,8 @@
     APR_ASSERT_SUCCESS(tc, "Could not set REUSEADDR on socket2", rv);
 
     rv = apr_socket_bind(sock, to);
-    APR_ASSERT_SUCCESS(tc, "Could not bind socket", rv);
+    APR_ASSERT_SUCCESS(tc, apr_psprintf(p, "Could not bind socket to %s:7772 (family %d)",
+                                        addr, family), rv);
     if (rv != APR_SUCCESS)
         return;
     rv = apr_mcast_hops(sock, 10);