diff options
author | Sean Bright <sean.bright@gmail.com> | 2017-12-22 09:14:07 -0500 |
---|---|---|
committer | Sean Bright <sean.bright@gmail.com> | 2017-12-22 09:14:07 -0500 |
commit | ce3d56920b15facbb64b3caf0d823a3f57c0dded (patch) | |
tree | 0ea4a13885afb281237b3747e85eb6315863ae0a /tests | |
parent | 35a2e09c655f26067db0f51837704886d6ffff78 (diff) |
Remove as much trailing whitespace as possible.
Change-Id: I873c1c6d00f447269bd841494459efccdd2c19c0
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile | 2 | ||||
-rw-r--r-- | tests/test_acl.c | 2 | ||||
-rwxr-xr-x | tests/test_ami_security_events.sh | 1 | ||||
-rw-r--r-- | tests/test_config.c | 1 | ||||
-rw-r--r-- | tests/test_dlinklists.c | 28 | ||||
-rw-r--r-- | tests/test_locale.c | 2 | ||||
-rw-r--r-- | tests/test_skel.c | 4 | ||||
-rw-r--r-- | tests/test_substitution.c | 2 |
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 c7a711fe3..c99c8ccc3 100644 --- a/tests/test_acl.c +++ b/tests/test_acl.c @@ -122,7 +122,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 a2ff328ff..88e62bd51 100644 --- a/tests/test_config.c +++ b/tests/test_config.c @@ -1931,4 +1931,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 81760acba..104c9a333 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 */ @@ -69,7 +69,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); } @@ -83,7 +83,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); } @@ -115,7 +115,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) @@ -160,7 +160,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) @@ -179,7 +179,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"); @@ -193,7 +193,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)) @@ -206,7 +206,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); @@ -279,7 +279,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 @@ -298,7 +298,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); @@ -307,15 +307,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(); @@ -344,7 +344,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 de14a0830..811fa120c 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 122003da3..c35ac4b4e 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 96ca29c74..070f825c4 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 */ |