[asterisk-commits] russell: trunk r327047 - in /trunk: ./ tests/test_netsock2.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 8 11:00:50 CDT 2011


Author: russell
Date: Fri Jul  8 11:00:46 2011
New Revision: 327047

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=327047
Log:
Merged revisions 327046 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r327046 | russell | 2011-07-08 11:00:05 -0500 (Fri, 08 Jul 2011) | 2 lines
  
  Fix an error and add more log message info to help see why this fails on FreeBSD.
........

Modified:
    trunk/   (props changed)
    trunk/tests/test_netsock2.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: trunk/tests/test_netsock2.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_netsock2.c?view=diff&rev=327047&r1=327046&r2=327047
==============================================================================
--- trunk/tests/test_netsock2.c (original)
+++ trunk/tests/test_netsock2.c Fri Jul  8 11:00:46 2011
@@ -101,7 +101,9 @@
 			tmp = ast_sockaddr_stringify(&addr);
 			ast_sockaddr_parse(&tmp_addr, tmp, 0);
 			if (ast_sockaddr_cmp_addr(&addr, &tmp_addr)) {
-				ast_test_status_update(test, "Re-parsed stringification did not match: '%s' vs '%s'\n", ast_sockaddr_stringify(&addr), ast_sockaddr_stringify(&tmp_addr));
+				char buf[64];
+				ast_copy_string(buf, ast_sockaddr_stringify(&addr), sizeof(buf));
+				ast_test_status_update(test, "Re-parsed stringification of '%s' did not match: '%s' vs '%s'\n", test_vals[x].address, buf, ast_sockaddr_stringify(&tmp_addr));
 				res = AST_TEST_FAIL;
 			}
 		}




More information about the asterisk-commits mailing list