mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-03 20:38:59 +00:00 
			
		
		
		
	Fix some presence-state unit test typos.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370597 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		@@ -559,7 +559,7 @@ AST_TEST_DEFINE(test_valid_parse_data)
 | 
			
		||||
	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 @@ AST_TEST_DEFINE(test_invalid_parse_data)
 | 
			
		||||
	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 @@ AST_TEST_DEFINE(test_presence_state_change)
 | 
			
		||||
	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";
 | 
			
		||||
 
 | 
			
		||||
@@ -553,18 +553,18 @@ static struct ast_test *test_alloc(ast_test_cb_t *cb)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	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);
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user