[asterisk-commits] tilghman: trunk r275105 - in /trunk: apps/ channels/ channels/sip/ funcs/ inc...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 9 12:00:27 CDT 2010


Author: tilghman
Date: Fri Jul  9 12:00:22 2010
New Revision: 275105

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=275105
Log:
Kill some startup warnings and errors and make some messages more helpful in tracking down the source.

Modified:
    trunk/apps/app_meetme.c
    trunk/apps/app_voicemail.c
    trunk/channels/chan_iax2.c
    trunk/channels/chan_sip.c
    trunk/channels/sip/config_parser.c
    trunk/channels/sip/dialplan_functions.c
    trunk/channels/sip/reqresp_parser.c
    trunk/funcs/func_math.c
    trunk/funcs/func_strings.c
    trunk/include/asterisk/channel.h
    trunk/include/asterisk/netsock2.h
    trunk/main/data.c
    trunk/main/features.c
    trunk/main/netsock2.c
    trunk/main/test.c
    trunk/res/res_agi.c
    trunk/res/res_timing_kqueue.c
    trunk/tests/test_acl.c
    trunk/tests/test_aoc.c
    trunk/tests/test_app.c
    trunk/tests/test_ast_format_str_reduce.c
    trunk/tests/test_astobj2.c
    trunk/tests/test_devicestate.c
    trunk/tests/test_event.c
    trunk/tests/test_gosub.c
    trunk/tests/test_heap.c
    trunk/tests/test_pbx.c
    trunk/tests/test_sched.c
    trunk/tests/test_skel.c
    trunk/tests/test_stringfields.c
    trunk/tests/test_strings.c
    trunk/tests/test_substitution.c
    trunk/tests/test_time.c
    trunk/tests/test_utils.c

Modified: trunk/apps/app_meetme.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_meetme.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/apps/app_meetme.c (original)
+++ trunk/apps/app_meetme.c Fri Jul  9 12:00:22 2010
@@ -6849,7 +6849,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "meetme_get_data_test";
-		info->category = "main/data/app_meetme/list";
+		info->category = "/main/data/app_meetme/list/";
 		info->summary = "Meetme data provider unit test";
 		info->description =
 			"Tests whether the Meetme data provider implementation works as expected.";

Modified: trunk/apps/app_voicemail.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_voicemail.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Fri Jul  9 12:00:22 2010
@@ -10359,7 +10359,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "vmuser";
-		info->category = "apps/app_voicemail/";
+		info->category = "/apps/app_voicemail/";
 		info->summary = "Vmuser unit test";
 		info->description =
 			"This tests passing all supported parameters to apply_options, the voicemail user config parser";
@@ -12110,7 +12110,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "vmsayname_exec";
-		info->category = "apps/app_voicemail/";
+		info->category = "/apps/app_voicemail/";
 		info->summary = "Vmsayname unit test";
 		info->description =
 			"This tests passing various parameters to vmsayname";
@@ -12207,7 +12207,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "test_voicemail_msgcount";
-		info->category = "apps/app_voicemail/";
+		info->category = "/apps/app_voicemail/";
 		info->summary = "Test Voicemail status checks";
 		info->description =
 			"Verify that message counts are correct when retrieved through the public API";
@@ -12375,7 +12375,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "test_voicemail_notify_endl";
-		info->category = "apps/app_voicemail/";
+		info->category = "/apps/app_voicemail/";
 		info->summary = "Test Voicemail notification end-of-line";
 		info->description =
 			"Verify that notification emails use a consistent end-of-line character";

Modified: trunk/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_iax2.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Fri Jul  9 12:00:22 2010
@@ -13887,7 +13887,7 @@
 	switch (cmd) {
 		case TEST_INIT:
 			info->name = "iax2_peers_get_data_test";
-			info->category = "main/data/iax2/peers";
+			info->category = "/main/data/iax2/peers/";
 			info->summary = "IAX2 peers data providers unit test";
 			info->description =
 				"Tests whether the IAX2 peers data provider implementation works as expected.";
@@ -13947,7 +13947,7 @@
 	switch (cmd) {
 		case TEST_INIT:
 			info->name = "iax2_users_get_data_test";
-			info->category = "main/data/iax2/users";
+			info->category = "/main/data/iax2/users/";
 			info->summary = "IAX2 users data providers unit test";
 			info->description =
 				"Tests whether the IAX2 users data provider implementation works as expected.";

Modified: trunk/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_sip.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri Jul  9 12:00:22 2010
@@ -27673,7 +27673,7 @@
 	switch (cmd) {
 		case TEST_INIT:
 			info->name = "sip_peers_get_data_test";
-			info->category = "main/data/sip/peers";
+			info->category = "/main/data/sip/peers/";
 			info->summary = "SIP peers data providers unit test";
 			info->description =
 				"Tests whether the SIP peers data provider implementation works as expected.";

Modified: trunk/channels/sip/config_parser.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/sip/config_parser.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/channels/sip/config_parser.c (original)
+++ trunk/channels/sip/config_parser.c Fri Jul  9 12:00:22 2010
@@ -288,7 +288,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "sip_parse_register_line_test";
-		info->category = "channels/chan_sip/";
+		info->category = "/channels/chan_sip/";
 		info->summary = "tests sip register line parsing";
 		info->description =
 							"Tests parsing of various register line configurations. "
@@ -696,7 +696,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "sip_parse_host_line_test";
-		info->category = "channels/chan_sip/";
+		info->category = "/channels/chan_sip/";
 		info->summary = "tests sip.conf host line parsing";
 		info->description =
 							"Tests parsing of various host line configurations. "

Modified: trunk/channels/sip/dialplan_functions.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/sip/dialplan_functions.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/channels/sip/dialplan_functions.c (original)
+++ trunk/channels/sip/dialplan_functions.c Fri Jul  9 12:00:22 2010
@@ -316,7 +316,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "test_sip_rtpqos";
-		info->category = "channels/chan_sip/";
+		info->category = "/channels/chan_sip/";
 		info->summary = "Test retrieval of SIP RTP QOS stats";
 		info->description =
 			"Verify values in the RTP instance structure can be accessed through the dialplan.";

Modified: trunk/channels/sip/reqresp_parser.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/sip/reqresp_parser.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/channels/sip/reqresp_parser.c (original)
+++ trunk/channels/sip/reqresp_parser.c Fri Jul  9 12:00:22 2010
@@ -428,7 +428,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "sip_uri_full_parse_test";
-		info->category = "channels/chan_sip/";
+		info->category = "/channels/chan_sip/";
 		info->summary = "tests sip full uri parsing";
 		info->description =
 			"Tests full parsing of various URIs "
@@ -501,7 +501,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "sip_uri_parse_test";
-		info->category = "channels/chan_sip/";
+		info->category = "/channels/chan_sip/";
 		info->summary = "tests sip uri parsing";
 		info->description =
 							"Tests parsing of various URIs "
@@ -758,7 +758,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "sip_get_calleridname_test";
-		info->category = "channels/chan_sip/";
+		info->category = "/channels/chan_sip/";
 		info->summary = "decodes callerid name from sip header";
 		info->description = "Decodes display-name field of sip header.  Checks for valid output and expected failure cases.";
 		return AST_TEST_NOT_RUN;
@@ -872,7 +872,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "sip_get_name_and_number_test";
-		info->category = "channels/chan_sip/";
+		info->category = "/channels/chan_sip/";
 		info->summary = "Tests getting name and number from sip header";
 		info->description =
 				"Runs through various test situations in which a name and "
@@ -1056,7 +1056,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "sip_get_in_brackets_test";
-		info->category = "channels/chan_sip/";
+		info->category = "/channels/chan_sip/";
 		info->summary = "Tests getting a sip uri in <> brackets within a sip header.";
 		info->description =
 				"Runs through various test situations in which a sip uri "
@@ -1266,7 +1266,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "parse_name_andor_addr_test";
-		info->category = "channels/chan_sip/";
+		info->category = "/channels/chan_sip/";
 		info->summary = "tests parsing of name_andor_addr abnf structure";
 		info->description =
 			"Tests parsing of abnf name-andor-addr = name-addr / addr-spec "
@@ -1496,7 +1496,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "parse_contact_header_test";
-		info->category = "channels/chan_sip/";
+		info->category = "/channels/chan_sip/";
 		info->summary = "tests parsing of sip contact header";
 		info->description =
 			"Tests parsing of a contact header including those with multiple contacts "
@@ -1714,7 +1714,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "sip_parse_options_test";
-		info->category = "channels/chan_sip/";
+		info->category = "/channels/chan_sip/";
 		info->summary = "Tests parsing of sip options";
 		info->description =
 							"Tests parsing of SIP options from supported and required "

Modified: trunk/funcs/func_math.c
URL: http://svnview.digium.com/svn/asterisk/trunk/funcs/func_math.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/funcs/func_math.c (original)
+++ trunk/funcs/func_math.c Fri Jul  9 12:00:22 2010
@@ -464,7 +464,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "test_MATH_function";
-		info->category = "main/pbx/";
+		info->category = "/main/pbx/";
 		info->summary = "Test MATH function substitution";
 		info->description =
 			"Executes a series of variable substitutions using the MATH function and ensures that the expected results are received.";

Modified: trunk/funcs/func_strings.c
URL: http://svnview.digium.com/svn/asterisk/trunk/funcs/func_strings.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/funcs/func_strings.c (original)
+++ trunk/funcs/func_strings.c Fri Jul  9 12:00:22 2010
@@ -1454,7 +1454,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "func_FILTER_test";
-		info->category = "funcs/func_strings/";
+		info->category = "/funcs/func_strings/";
 		info->summary = "Test FILTER function";
 		info->description = "Verify FILTER behavior";
 		return AST_TEST_NOT_RUN;

Modified: trunk/include/asterisk/channel.h
URL: http://svnview.digium.com/svn/asterisk/trunk/include/asterisk/channel.h?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/include/asterisk/channel.h (original)
+++ trunk/include/asterisk/channel.h Fri Jul  9 12:00:22 2010
@@ -753,10 +753,10 @@
 	unsigned int flags;				/*!< channel flags of AST_FLAG_ type */
 	int alertpipe[2];
 	format_t nativeformats;         /*!< Kinds of data this channel can natively handle */
-	format_t readformat;            /*!< Requested read format */
-	format_t writeformat;           /*!< Requested write format */
-	format_t rawreadformat;         /*!< Raw read format */
-	format_t rawwriteformat;        /*!< Raw write format */
+	format_t readformat;            /*!< Requested read format (after translation) */
+	format_t writeformat;           /*!< Requested write format (after translation) */
+	format_t rawreadformat;         /*!< Raw read format (before translation) */
+	format_t rawwriteformat;        /*!< Raw write format (before translation) */
 	unsigned int emulate_dtmf_duration;		/*!< Number of ms left to emulate DTMF for */
 #ifdef HAVE_EPOLL
 	int epfd;

Modified: trunk/include/asterisk/netsock2.h
URL: http://svnview.digium.com/svn/asterisk/trunk/include/asterisk/netsock2.h?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/include/asterisk/netsock2.h (original)
+++ trunk/include/asterisk/netsock2.h Fri Jul  9 12:00:22 2010
@@ -293,7 +293,8 @@
  * \retval 0 Address is null
  * \retval non-zero The port number of the ast_sockaddr
  */
-uint16_t ast_sockaddr_port(const struct ast_sockaddr *addr);
+#define ast_sockaddr_port(addr)	_ast_sockaddr_port(addr, __FILE__, __LINE__, __PRETTY_FUNCTION__)
+uint16_t _ast_sockaddr_port(const struct ast_sockaddr *addr, const char *file, int line, const char *func);
 
 /*!
  * \since 1.8
@@ -308,7 +309,8 @@
  * \param port The port you wish to set the address to use
  * \retval void
  */
-void ast_sockaddr_set_port(struct ast_sockaddr *addr, uint16_t port);
+#define ast_sockaddr_set_port(addr,port)	_ast_sockaddr_set_port(addr,port,__FILE__,__LINE__,__PRETTY_FUNCTION__)
+void _ast_sockaddr_set_port(struct ast_sockaddr *addr, uint16_t port, const char *file, int line, const char *func);
 
 /*!
  * \since 1.8
@@ -500,8 +502,9 @@
  * \retval nonzero Success
  * \retval zero Failure
  */
-int ast_sockaddr_to_sin(const struct ast_sockaddr *addr,
-			struct sockaddr_in *sin);
+#define ast_sockaddr_to_sin(addr,sin)	_ast_sockaddr_to_sin(addr,sin, __FILE__, __LINE__, __PRETTY_FUNCTION__)
+int _ast_sockaddr_to_sin(const struct ast_sockaddr *addr,
+			struct sockaddr_in *sin, const char *file, int line, const char *func);
 
 /*!
  * \since 1.8
@@ -512,7 +515,9 @@
  * \param sin The sockaddr_in to convert
  * \return an ast_sockaddr structure
  */
-void ast_sockaddr_from_sin(struct ast_sockaddr *addr, const struct sockaddr_in *sin);
+#define ast_sockaddr_from_sin(addr,sin)	_ast_sockaddr_from_sin(addr,sin, __FILE__, __LINE__, __PRETTY_FUNCTION__)
+void _ast_sockaddr_from_sin(struct ast_sockaddr *addr, const struct sockaddr_in *sin,
+		const char *file, int line, const char *func);
 
 /*@}*/
 

Modified: trunk/main/data.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/data.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/main/data.c (original)
+++ trunk/main/data.c Fri Jul  9 12:00:22 2010
@@ -3216,7 +3216,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "data_test";
-		info->category = "main/data/";
+		info->category = "/main/data/";
 		info->summary = "Data API unit test";
 		info->description =
 			"Tests whether data API get implementation works as expected.";

Modified: trunk/main/features.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/features.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/main/features.c (original)
+++ trunk/main/features.c Fri Jul  9 12:00:22 2010
@@ -1169,7 +1169,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "features_test";
-		info->category = "main/features/";
+		info->category = "/main/features/";
 		info->summary = "Features unit test";
 		info->description =
 			"Tests whether parking respects PARKINGLOT settings";

Modified: trunk/main/netsock2.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/netsock2.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/main/netsock2.c (original)
+++ trunk/main/netsock2.c Fri Jul  9 12:00:22 2010
@@ -328,7 +328,7 @@
 	return ret;
 }
 
-uint16_t ast_sockaddr_port(const struct ast_sockaddr *addr)
+uint16_t _ast_sockaddr_port(const struct ast_sockaddr *addr, const char *file, int line, const char *func)
 {
 	if (addr->ss.ss_family == AF_INET &&
 	    addr->len == sizeof(struct sockaddr_in)) {
@@ -337,11 +337,11 @@
 		 addr->len == sizeof(struct sockaddr_in6)) {
 		return ntohs(((struct sockaddr_in6 *)&addr->ss)->sin6_port);
 	}
-	ast_log(LOG_ERROR, "Not an IPv4 nor IPv6 address, cannot get port.\n");
+	ast_log(__LOG_DEBUG, file, line, func, "Not an IPv4 nor IPv6 address, cannot get port.\n");
 	return 0;
 }
 
-void ast_sockaddr_set_port(struct ast_sockaddr *addr, uint16_t port)
+void _ast_sockaddr_set_port(struct ast_sockaddr *addr, uint16_t port, const char *file, int line, const char *func)
 {
 	if (addr->ss.ss_family == AF_INET &&
 	    addr->len == sizeof(struct sockaddr_in)) {
@@ -350,7 +350,7 @@
 		 addr->len == sizeof(struct sockaddr_in6)) {
 		((struct sockaddr_in6 *)&addr->ss)->sin6_port = htons(port);
 	} else {
-		ast_log(LOG_ERROR,
+		ast_log(__LOG_DEBUG, file, line, func,
 			"Not an IPv4 nor IPv6 address, cannot set port.\n");
 	}
 }
@@ -466,8 +466,8 @@
 	return res;
 }
 
-int ast_sockaddr_to_sin(const struct ast_sockaddr *addr,
-			struct sockaddr_in *sin)
+int _ast_sockaddr_to_sin(const struct ast_sockaddr *addr,
+			struct sockaddr_in *sin, const char *file, int line, const char *func)
 {
 	if (ast_sockaddr_isnull(addr)) {
 		memset(sin, 0, sizeof(*sin));
@@ -475,24 +475,25 @@
 	}
 
 	if (addr->len != sizeof(*sin)) {
-		ast_log(LOG_ERROR, "Bad address cast to IPv4\n");
+		ast_log(__LOG_ERROR, file, line, func, "Bad address cast to IPv4\n");
 		return 0;
 	}
 
 	if (addr->ss.ss_family != AF_INET) {
-		ast_log(LOG_DEBUG, "Address family is not AF_INET\n");
+		ast_log(__LOG_DEBUG, file, line, func, "Address family is not AF_INET\n");
 	}
 
 	*sin = *(struct sockaddr_in *)&addr->ss;
 	return 1;
 }
 
-void ast_sockaddr_from_sin(struct ast_sockaddr *addr, const struct sockaddr_in *sin)
+void _ast_sockaddr_from_sin(struct ast_sockaddr *addr, const struct sockaddr_in *sin,
+		const char *file, int line, const char *func)
 {
 	memcpy(&addr->ss, sin, sizeof(*sin));
 
 	if (addr->ss.ss_family != AF_INET) {
-		ast_log(LOG_DEBUG, "Address family is not AF_INET\n");
+		ast_log(__LOG_DEBUG, file, line, func, "Address family is not AF_INET\n");
 	}
 
 	addr->len = sizeof(*sin);

Modified: trunk/main/test.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/test.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/main/test.c (original)
+++ trunk/main/test.c Fri Jul  9 12:00:22 2010
@@ -548,7 +548,7 @@
 	}
 
 	if (test->info.category[0] != '/' || test->info.category[strlen(test->info.category) - 1] != '/') {
-		ast_log(LOG_WARNING, "Test category is missing a leading or trailing backslash for test %s%s",
+		ast_log(LOG_WARNING, "Test category is missing a leading or trailing backslash for test %s%s\n",
 				test->info.category, test->info.name);
 	}
 

Modified: trunk/res/res_agi.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_agi.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/res/res_agi.c (original)
+++ trunk/res/res_agi.c Fri Jul  9 12:00:22 2010
@@ -3787,7 +3787,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "null_agi_docs";
-		info->category = "res/agi/";
+		info->category = "/res/agi/";
 		info->summary = "AGI command with no documentation";
 		info->description = "Test whether an AGI command with no documentation will crash Asterisk";
 		return AST_TEST_NOT_RUN;

Modified: trunk/res/res_timing_kqueue.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_timing_kqueue.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/res/res_timing_kqueue.c (original)
+++ trunk/res/res_timing_kqueue.c Fri Jul  9 12:00:22 2010
@@ -284,7 +284,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "test_kqueue_timing";
-		info->category = "res/res_timing_kqueue";
+		info->category = "/res/res_timing_kqueue/";
 		info->summary = "Test KQueue timing interface";
 		info->description = "Verify that the KQueue timing interface correctly generates timing events";
 		return AST_TEST_NOT_RUN;

Modified: trunk/tests/test_acl.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_acl.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/tests/test_acl.c (original)
+++ trunk/tests/test_acl.c Fri Jul  9 12:00:22 2010
@@ -59,7 +59,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "invalid_acl";
-		info->category = "main/acl/";
+		info->category = "/main/acl/";
 		info->summary = "Invalid ACL unit test";
 		info->description =
 			"Ensures that garbage ACL values are not accepted";
@@ -129,7 +129,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "acl";
-		info->category = "main/acl/";
+		info->category = "/main/acl/";
 		info->summary = "ACL unit test";
 		info->description =
 			"Tests that hosts are properly permitted or denied";

Modified: trunk/tests/test_aoc.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_aoc.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/tests/test_aoc.c (original)
+++ trunk/tests/test_aoc.c Fri Jul  9 12:00:22 2010
@@ -48,7 +48,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "aoc_event_test";
-		info->category = "main/aoc/";
+		info->category = "/main/aoc/";
 		info->summary = "Advice of Charge event generation test";
 		info->description =
 			"Creates AOC messages, verify event string matches expected results";
@@ -315,7 +315,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "aoc_encode_decode_test";
-		info->category = "main/aoc/";
+		info->category = "/main/aoc/";
 		info->summary = "Advice of Charge encode and decode test";
 		info->description =
 			"This tests the Advice of Charge encode and decode routines.";

Modified: trunk/tests/test_app.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_app.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/tests/test_app.c (original)
+++ trunk/tests/test_app.c Fri Jul  9 12:00:22 2010
@@ -75,7 +75,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "options_parsing";
-		info->category = "main/app/";
+		info->category = "/main/app/";
 		info->summary = "App options unit test";
 		info->description =
 			"This tests the options parsing code to ensure that it behaves as expected";
@@ -161,7 +161,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "app_group";
-		info->category = "main/app/";
+		info->category = "/main/app/";
 		info->summary = "App group unit test";
 		info->description =
 			"This tests various app group functionality";

Modified: trunk/tests/test_ast_format_str_reduce.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_ast_format_str_reduce.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/tests/test_ast_format_str_reduce.c (original)
+++ trunk/tests/test_ast_format_str_reduce.c Fri Jul  9 12:00:22 2010
@@ -83,7 +83,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "ast_format_str_reduce_test_1";
-		info->category = "main/file/";
+		info->category = "/main/file/";
 		info->summary = "reduce format strings";
 		info->description = "Reduce some format strings and make sure the results match what we expect.";
 		return AST_TEST_NOT_RUN;

Modified: trunk/tests/test_astobj2.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_astobj2.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/tests/test_astobj2.c (original)
+++ trunk/tests/test_astobj2.c Fri Jul  9 12:00:22 2010
@@ -325,7 +325,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "astobj2_test1";
-		info->category = "main/astobj2/";
+		info->category = "/main/astobj2/";
 		info->summary = "astobj2 test using ao2 objects, containers, callbacks, and iterators";
 		info->description =
 			"Builds ao2_containers with various item numbers, bucket sizes, cmp and hash "

Modified: trunk/tests/test_devicestate.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_devicestate.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/tests/test_devicestate.c (original)
+++ trunk/tests/test_devicestate.c Fri Jul  9 12:00:22 2010
@@ -220,7 +220,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "device2extenstate_test";
-		info->category = "main/devicestate/";
+		info->category = "/main/devicestate/";
 		info->summary = "Tests combined devstate mapping and device to extension state mapping.";
 		info->description =
 			"Verifies device state aggregate results match the expected combined "

Modified: trunk/tests/test_event.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_event.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/tests/test_event.c (original)
+++ trunk/tests/test_event.c Fri Jul  9 12:00:22 2010
@@ -134,7 +134,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "ast_event_new_test";
-		info->category = "main/event/";
+		info->category = "/main/event/";
 		info->summary = "Test event creation";
 		info->description =
 			"This test exercises the API calls that allow allocation "
@@ -272,7 +272,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "ast_event_subscribe_test";
-		info->category = "main/event/";
+		info->category = "/main/event/";
 		info->summary = "Test event subscriptions";
 		info->description =
 			"This test exercises the API calls that allow subscriptions "

Modified: trunk/tests/test_gosub.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_gosub.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/tests/test_gosub.c (original)
+++ trunk/tests/test_gosub.c Fri Jul  9 12:00:22 2010
@@ -85,7 +85,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "gosub application";
-		info->category = "apps/app_gosub/";
+		info->category = "/apps/app_gosub/";
 		info->summary = "Verify functionality of gosub application";
 		info->description =
 			"Verify functionality of gosub application";

Modified: trunk/tests/test_heap.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_heap.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/tests/test_heap.c (original)
+++ trunk/tests/test_heap.c Fri Jul  9 12:00:22 2010
@@ -68,7 +68,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "heap_test_1";
-		info->category = "main/heap/";
+		info->category = "/main/heap/";
 		info->summary = "push and pop elements";
 		info->description = "Push a few elements onto a heap and make sure that they come back off in the right order.";
 		return AST_TEST_NOT_RUN;
@@ -129,7 +129,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "heap_test_2";
-		info->category = "main/heap/";
+		info->category = "/main/heap/";
 		info->summary = "load test";
 		info->description =
 				"Push one hundred thousand random elements on to a heap, "
@@ -204,7 +204,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "heap_test_3";
-		info->category = "main/heap/";
+		info->category = "/main/heap/";
 		info->summary = "random element removal test";
 		info->description =
 			"Push a hundred thousand random elements on to a heap, "

Modified: trunk/tests/test_pbx.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_pbx.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/tests/test_pbx.c (original)
+++ trunk/tests/test_pbx.c Fri Jul  9 12:00:22 2010
@@ -242,7 +242,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "pattern_match_test";
-		info->category = "main/pbx/";
+		info->category = "/main/pbx/";
 		info->summary = "Test pattern matching";
 		info->description = "Create a context with a bunch of extensions within. Then attempt\n"
 			"to match some strings to the extensions.";

Modified: trunk/tests/test_sched.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_sched.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/tests/test_sched.c (original)
+++ trunk/tests/test_sched.c Fri Jul  9 12:00:22 2010
@@ -53,7 +53,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "sched_test_order";
-		info->category = "main/sched/";
+		info->category = "/main/sched/";
 		info->summary = "Test ordering of events in the scheduler API";
 		info->description =
 			"This test ensures that events are properly ordered by the "

Modified: trunk/tests/test_skel.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_skel.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/tests/test_skel.c (original)
+++ trunk/tests/test_skel.c Fri Jul  9 12:00:22 2010
@@ -45,7 +45,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "sample_test";
-		info->category = "main/sample/";
+		info->category = "/main/sample/";
 		info->summary = "sample unit test";
 		info->description =
 			"This demonstrates what is required to implement "

Modified: trunk/tests/test_stringfields.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_stringfields.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/tests/test_stringfields.c (original)
+++ trunk/tests/test_stringfields.c Fri Jul  9 12:00:22 2010
@@ -64,7 +64,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "string_field_test";
-		info->category = "main/utils/";
+		info->category = "/main/utils/";
 		info->summary = "Test stringfield operations";
 		info->description =
 			"This tests the stringfield API";

Modified: trunk/tests/test_strings.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_strings.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/tests/test_strings.c (original)
+++ trunk/tests/test_strings.c Fri Jul  9 12:00:22 2010
@@ -58,7 +58,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "str_test";
-		info->category = "main/strings/";
+		info->category = "/main/strings/";
 		info->summary = "Test dynamic string operations";
 		info->description = "Test setting and appending stack and heap-allocated strings";
 		return AST_TEST_NOT_RUN;

Modified: trunk/tests/test_substitution.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_substitution.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/tests/test_substitution.c (original)
+++ trunk/tests/test_substitution.c Fri Jul  9 12:00:22 2010
@@ -205,7 +205,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "test_substitution";
-		info->category = "main/pbx/";
+		info->category = "/main/pbx/";
 		info->summary = "Test variable and function substitution";
 		info->description =
 			"This test executes a variety of variable and function substitutions "

Modified: trunk/tests/test_time.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_time.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/tests/test_time.c (original)
+++ trunk/tests/test_time.c Fri Jul  9 12:00:22 2010
@@ -58,7 +58,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "timezone_watch";
-		info->category = "main/stdtime/";
+		info->category = "/main/stdtime/";
 		info->summary = "Verify deleting timezone file purges cache";
 		info->description =
 			"Verifies that the caching engine properly destroys a timezone entry when its file is deleted.";

Modified: trunk/tests/test_utils.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_utils.c?view=diff&rev=275105&r1=275104&r2=275105
==============================================================================
--- trunk/tests/test_utils.c (original)
+++ trunk/tests/test_utils.c Fri Jul  9 12:00:22 2010
@@ -48,7 +48,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "uri_encode_decode_test";
-		info->category = "main/utils/";
+		info->category = "/main/utils/";
 		info->summary = "encode and decode a hex escaped string";
 		info->description = "encode a string, verify encoded string matches what we expect.  Decode the encoded string, verify decoded string matches the original string.";
 		return AST_TEST_NOT_RUN;
@@ -114,7 +114,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "md5_test";
-		info->category = "main/utils/";
+		info->category = "/main/utils/";
 		info->summary = "MD5 test";
 		info->description =
 			"This test exercises MD5 calculations."
@@ -159,7 +159,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "sha1_test";
-		info->category = "main/utils/";
+		info->category = "/main/utils/";
 		info->summary = "SHA1 test";
 		info->description =
 			"This test exercises SHA1 calculations."
@@ -204,7 +204,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "base64_test";
-		info->category = "main/utils/";
+		info->category = "/main/utils/";
 		info->summary = "base64 test";
 		info->description = "This test exercises the base64 conversions.";
 		return AST_TEST_NOT_RUN;




More information about the asterisk-commits mailing list