[asterisk-commits] russell: branch 1.8 r327046 - /branches/1.8/tests/test_netsock2.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jul 8 11:00:09 CDT 2011
Author: russell
Date: Fri Jul 8 11:00:05 2011
New Revision: 327046
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=327046
Log:
Fix an error and add more log message info to help see why this fails on FreeBSD.
Modified:
branches/1.8/tests/test_netsock2.c
Modified: branches/1.8/tests/test_netsock2.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/tests/test_netsock2.c?view=diff&rev=327046&r1=327045&r2=327046
==============================================================================
--- branches/1.8/tests/test_netsock2.c (original)
+++ branches/1.8/tests/test_netsock2.c Fri Jul 8 11:00:05 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