[asterisk-commits] rmudgett: trunk r370597 - in /trunk: funcs/func_presencestate.c main/test.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jul 30 18:18:16 CDT 2012


Author: rmudgett
Date: Mon Jul 30 18:18:13 2012
New Revision: 370597

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=370597
Log:
Fix some presence-state unit test typos.

Modified:
    trunk/funcs/func_presencestate.c
    trunk/main/test.c

Modified: trunk/funcs/func_presencestate.c
URL: http://svnview.digium.com/svn/asterisk/trunk/funcs/func_presencestate.c?view=diff&rev=370597&r1=370596&r2=370597
==============================================================================
--- trunk/funcs/func_presencestate.c (original)
+++ trunk/funcs/func_presencestate.c Mon Jul 30 18:18:13 2012
@@ -559,7 +559,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "parse_valid_presence_data";
-		info->category = "/funcs/func_presence";
+		info->category = "/funcs/func_presence/";
 		info->summary = "PRESENCESTATE parsing test";
 		info->description =
 			"Ensure that parsing function accepts proper values, and gives proper outputs";
@@ -617,7 +617,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "parse_invalid_presence_data";
-		info->category = "/funcs/func_presence";
+		info->category = "/funcs/func_presence/";
 		info->summary = "PRESENCESTATE parsing test";
 		info->description =
 			"Ensure that parsing function rejects improper values";
@@ -678,7 +678,7 @@
 	switch (cmd) {
 	case TEST_INIT:
 		info->name = "test_presence_state_change";
-		info->category = "/funcs/func_presence";
+		info->category = "/funcs/func_presence/";
 		info->summary = "presence state change subscription";
 		info->description =
 			"Ensure that presence state changes are communicated to subscribers";

Modified: trunk/main/test.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/test.c?view=diff&rev=370597&r1=370596&r2=370597
==============================================================================
--- trunk/main/test.c (original)
+++ trunk/main/test.c Mon Jul 30 18:18:13 2012
@@ -553,18 +553,18 @@
 	}
 
 	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\n",
+		ast_log(LOG_WARNING, "Test category is missing a leading or trailing slash for test %s%s\n",
 				test->info.category, test->info.name);
 	}
 
 	if (ast_strlen_zero(test->info.summary)) {
-		ast_log(LOG_WARNING, "Test %s/%s has no summary, test registration refused.\n",
+		ast_log(LOG_WARNING, "Test %s%s has no summary, test registration refused.\n",
 				test->info.category, test->info.name);
 		return test_free(test);
 	}
 
 	if (ast_strlen_zero(test->info.description)) {
-		ast_log(LOG_WARNING, "Test %s/%s has no description, test registration refused.\n",
+		ast_log(LOG_WARNING, "Test %s%s has no description, test registration refused.\n",
 				test->info.category, test->info.name);
 		return test_free(test);
 	}




More information about the asterisk-commits mailing list