mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 18:55:19 +00:00 
			
		
		
		
	Tweaked __ast_test_suite_assert_notify() and __ast_test_suite_event_notify() to be void functions.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@378823 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		
							
								
								
									
										10
									
								
								main/test.c
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								main/test.c
									
									
									
									
									
								
							| @@ -910,13 +910,13 @@ static struct ast_cli_entry test_cli[] = { | ||||
| 	AST_CLI_DEFINE(test_cli_generate_results,          "generate test results to file"), | ||||
| }; | ||||
|  | ||||
| int __ast_test_suite_event_notify(const char *file, const char *func, int line, const char *state, const char *fmt, ...) | ||||
| void __ast_test_suite_event_notify(const char *file, const char *func, int line, const char *state, const char *fmt, ...) | ||||
| { | ||||
| 	struct ast_str *buf = NULL; | ||||
| 	va_list ap; | ||||
|  | ||||
| 	if (!(buf = ast_str_create(128))) { | ||||
| 		return -1; | ||||
| 		return; | ||||
| 	} | ||||
|  | ||||
| 	va_start(ap, fmt); | ||||
| @@ -933,11 +933,9 @@ int __ast_test_suite_event_notify(const char *file, const char *func, int line, | ||||
| 		state, file, func, line, ast_str_buffer(buf)); | ||||
|  | ||||
| 	ast_free(buf); | ||||
|  | ||||
| 	return 0; | ||||
| } | ||||
|  | ||||
| int __ast_test_suite_assert_notify(const char *file, const char *func, int line, const char *exp) | ||||
| void __ast_test_suite_assert_notify(const char *file, const char *func, int line, const char *exp) | ||||
| { | ||||
| 	manager_event(EVENT_FLAG_TEST, "TestEvent", | ||||
| 		"Type: Assert\r\n" | ||||
| @@ -946,8 +944,6 @@ int __ast_test_suite_assert_notify(const char *file, const char *func, int line, | ||||
| 		"AppLine: %d\r\n" | ||||
| 		"Expression: %s\r\n", | ||||
| 		file, func, line, exp); | ||||
|  | ||||
| 	return 0; | ||||
| } | ||||
|  | ||||
| #endif /* TEST_FRAMEWORK */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user