summaryrefslogtreecommitdiff
path: root/main/test.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2013-01-09 21:14:39 +0000
committerRichard Mudgett <rmudgett@digium.com>2013-01-09 21:14:39 +0000
commit04501f0054d5e7335cfa697ba75dd2ae907c4f45 (patch)
tree735e6c080f015ca024d19b8d3edeafb07a570b7a /main/test.c
parent671499c8b26568aa01fe385da7645880969fd1a6 (diff)
* Whitespace changes.
* Made ast_test_init() match its prototype. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@378790 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/test.c')
-rw-r--r--main/test.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/main/test.c b/main/test.c
index b5c3d7d5d..60676cb84 100644
--- a/main/test.c
+++ b/main/test.c
@@ -121,8 +121,7 @@ void ast_test_debug(struct ast_test *test, const char *fmt, ...)
ast_free(buf);
}
-int __ast_test_status_update(const char *file, const char *func, int line,
- struct ast_test *test, const char *fmt, ...)
+int __ast_test_status_update(const char *file, const char *func, int line, struct ast_test *test, const char *fmt, ...)
{
struct ast_str *buf = NULL;
va_list ap;
@@ -911,8 +910,7 @@ 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, ...)
+int __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;
@@ -930,7 +928,8 @@ int __ast_test_suite_event_notify(const char *file, const char *func, int line,
"State: %s\r\n"
"AppFile: %s\r\n"
"AppFunction: %s\r\n"
- "AppLine: %d\r\n%s\r\n",
+ "AppLine: %d\r\n"
+ "%s\r\n",
state, file, func, line, ast_str_buffer(buf));
ast_free(buf);
@@ -938,8 +937,7 @@ int __ast_test_suite_event_notify(const char *file, const char *func, int line,
return 0;
}
-int __ast_test_suite_assert_notify(const char *file, const char *func, int line,
- const char *exp)
+int __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"
@@ -954,7 +952,7 @@ int __ast_test_suite_assert_notify(const char *file, const char *func, int line,
#endif /* TEST_FRAMEWORK */
-int ast_test_init()
+int ast_test_init(void)
{
#ifdef TEST_FRAMEWORK
/* Register cli commands */