summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSean Bright <sean.bright@gmail.com>2017-12-22 09:23:22 -0500
committerSean Bright <sean.bright@gmail.com>2017-12-22 09:23:22 -0500
commitfd0ca1c3f9b972a52d48a82b492fd6bac772dc78 (patch)
tree42d2a87726d196f4db1c68489007520a4c597062 /tests
parent9ef97b5a9191e51f1edc66bb17728fd9fe552c35 (diff)
Remove as much trailing whitespace as possible.
Change-Id: I873c1c6d00f447269bd841494459efccdd2c19c0
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile2
-rw-r--r--tests/test_acl.c2
-rwxr-xr-xtests/test_ami_security_events.sh1
-rw-r--r--tests/test_config.c1
-rw-r--r--tests/test_dlinklists.c28
-rw-r--r--tests/test_locale.c2
-rw-r--r--tests/test_skel.c4
-rw-r--r--tests/test_substitution.c2
8 files changed, 20 insertions, 22 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 000da6c94..a65b88bac 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -1,6 +1,6 @@
#
# Asterisk -- An open source telephony toolkit.
-#
+#
# Makefile for test modules
#
# Copyright (C) 2008, Digium, Inc.
diff --git a/tests/test_acl.c b/tests/test_acl.c
index 98eb4dcc0..841a4d5e7 100644
--- a/tests/test_acl.c
+++ b/tests/test_acl.c
@@ -120,7 +120,7 @@ struct acl {
#define TACL_A AST_SENSE_ALLOW
#define TACL_D AST_SENSE_DENY
-static int build_ha(const struct acl *acl, size_t len, struct ast_ha **ha, const char *acl_name, int *err, struct ast_test *test, enum ast_test_result_state *res)
+static int build_ha(const struct acl *acl, size_t len, struct ast_ha **ha, const char *acl_name, int *err, struct ast_test *test, enum ast_test_result_state *res)
{
size_t i;
diff --git a/tests/test_ami_security_events.sh b/tests/test_ami_security_events.sh
index 6f125dc5a..8cbc6669b 100755
--- a/tests/test_ami_security_events.sh
+++ b/tests/test_ami_security_events.sh
@@ -44,4 +44,3 @@ printf "Action: Challenge\r\nUsername: russell\r\nAuthType: MD5\r\n\r\nAction: L
# Session Limit
printf "Action: Login\r\nUsername: russell\r\nSecret: blah123\r\n\r\n" | nc -w 5 localhost 5038 &
printf "Action: Login\r\nUsername: russell\r\nSecret: blah123\r\n\r\n" | nc -w 1 localhost 5038
-
diff --git a/tests/test_config.c b/tests/test_config.c
index de85f23b0..e00b30b39 100644
--- a/tests/test_config.c
+++ b/tests/test_config.c
@@ -1929,4 +1929,3 @@ static int load_module(void)
}
AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Config test module");
-
diff --git a/tests/test_dlinklists.c b/tests/test_dlinklists.c
index 81c10b20d..2ba55332b 100644
--- a/tests/test_dlinklists.c
+++ b/tests/test_dlinklists.c
@@ -21,7 +21,7 @@
* \brief Doubly-Linked List Tests
*
* \author\verbatim Steve Murphy <murf@digium.com> \endverbatim
- *
+ *
* This module will run some DLL tests at load time
* \ingroup tests
*/
@@ -67,7 +67,7 @@ static void print_list(struct test_container *x, char *expect)
if (t1 != AST_DLLIST_LAST(&x->entries))
strcat(buff," <=> ");
}
-
+
ast_debug(1,"Got: %s [expect %s]\n", buff, expect);
}
@@ -81,7 +81,7 @@ static void print_list_backwards(struct test_container *x, char *expect)
if (t1 != AST_DLLIST_FIRST(&x->entries))
strcat(buff," <=> ");
}
-
+
ast_debug(1,"Got: %s [expect %s]\n", buff, expect);
}
@@ -113,7 +113,7 @@ static void destroy_test_container(struct test_container *x)
/* Macros to test:
AST_DLLIST_LOCK(head)
AST_RWDLLIST_WRLOCK(head)
-AST_RWDLLIST_WRLOCK(head)
+AST_RWDLLIST_WRLOCK(head)
AST_RWDLLIST_RDLOCK(head)
AST_DLLIST_TRYLOCK(head)
AST_RWDLLIST_TRYWRLOCK(head)
@@ -158,7 +158,7 @@ AST_DLLIST_TRAVERSE_SAFE_BEGIN(head, var, field)
AST_DLLIST_TRAVERSE_SAFE_END
AST_DLLIST_REMOVE_CURRENT(field)
AST_DLLIST_MOVE_CURRENT(newhead, field)
-AST_DLLIST_INSERT_BEFORE_CURRENT(elm, field)
+AST_DLLIST_INSERT_BEFORE_CURRENT(elm, field)
AST_DLLIST_MOVE_CURRENT_BACKWARDS(newhead, field)
@@ -177,7 +177,7 @@ static void dll_tests(void)
struct test1 *c;
struct test1 *d;
struct test1 *e;
-
+
ast_debug(1,"Test AST_DLLIST_INSERT_HEAD, AST_DLLIST_TRAVERSE, AST_DLLIST_TRAVERSE_BACKWARDS_SAFE_BEGIN, AST_DLLIST_TRAVERSE_BACKWARDS_SAFE_END\n");
tc = make_cont();
a = make_test1("A");
@@ -191,7 +191,7 @@ static void dll_tests(void)
print_list(tc, "A <=> B <=> C <=> D");
destroy_test_container(tc);
-
+
tc = make_cont();
if (AST_DLLIST_EMPTY(&tc->entries))
@@ -204,7 +204,7 @@ static void dll_tests(void)
b = make_test1("B");
c = make_test1("C");
d = make_test1("D");
-
+
ast_debug(1,"Test AST_DLLIST_INSERT_TAIL\n");
AST_DLLIST_INSERT_TAIL(&tc->entries, a, list);
AST_DLLIST_INSERT_TAIL(&tc->entries, b, list);
@@ -277,7 +277,7 @@ static void dll_tests(void)
AST_DLLIST_REMOVE(&tc->entries, d, list);
print_list(tc, "B");
AST_DLLIST_REMOVE(&tc->entries, b, list);
-
+
if (AST_DLLIST_EMPTY(&tc->entries))
ast_debug(1,"Test AST_DLLIST_REMOVE....OK\n");
else
@@ -296,7 +296,7 @@ static void dll_tests(void)
ast_debug(1,"Test AST_DLLIST_REMOVE_CURRENT... OK\n");
else
ast_log(LOG_ERROR,"Test AST_DLLIST_REMOVE_CURRENT... PROBLEM\n");
-
+
ast_debug(1,"Test AST_DLLIST_MOVE_CURRENT, AST_DLLIST_INSERT_BEFORE_CURRENT\n");
AST_DLLIST_INSERT_HEAD(&tc->entries, a, list);
AST_DLLIST_INSERT_AFTER(&tc->entries, a, b, list);
@@ -305,15 +305,15 @@ static void dll_tests(void)
if (e == a) {
AST_DLLIST_INSERT_BEFORE_CURRENT(d, list); /* D A B C */
}
-
+
if (e == b) {
AST_DLLIST_MOVE_CURRENT(&tc->entries, list); /* D A C B */
}
-
+
}
AST_DLLIST_TRAVERSE_SAFE_END;
print_list(tc, "D <=> A <=> C <=> B");
-
+
destroy_test_container(tc);
tc = make_cont();
@@ -342,7 +342,7 @@ static void dll_tests(void)
AST_DLLIST_INSERT_BEFORE_CURRENT_BACKWARDS(d, list); /* C A D */
print_list(tc, "C <=> A <=> D");
}
-
+
}
AST_DLLIST_TRAVERSE_SAFE_END;
print_list(tc, "C <=> A <=> D");
diff --git a/tests/test_locale.c b/tests/test_locale.c
index 7a591cb8b..99137c182 100644
--- a/tests/test_locale.c
+++ b/tests/test_locale.c
@@ -21,7 +21,7 @@
* \brief Locale Test
*
* \author\verbatim Tilghman Lesher <tlesher AT digium DOT com> \endverbatim
- *
+ *
* \ingroup tests
*/
diff --git a/tests/test_skel.c b/tests/test_skel.c
index 208751c95..33ecd458d 100644
--- a/tests/test_skel.c
+++ b/tests/test_skel.c
@@ -16,12 +16,12 @@
* at the top of the source tree.
*/
-/*!
+/*!
* \file
* \brief Skeleton Test
*
* \author\verbatim <Your Name Here> <<Your Email Here>> \endverbatim
- *
+ *
* This is a skeleton for development of an Asterisk test module
* \ingroup tests
*/
diff --git a/tests/test_substitution.c b/tests/test_substitution.c
index 8b9a164aa..00defbd72 100644
--- a/tests/test_substitution.c
+++ b/tests/test_substitution.c
@@ -21,7 +21,7 @@
* \brief Substitution Test
*
* \author\verbatim Tilghman Lesher <tlesher AT digium DOT com> \endverbatim
- *
+ *
* \ingroup tests
*/