summaryrefslogtreecommitdiff
path: root/tests/test_threadpool.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2015-06-24 14:39:01 -0500
committerRichard Mudgett <rmudgett@digium.com>2015-06-24 17:11:56 -0500
commit2b0482d699e44d1f4159bd68d30b2a6a80d21ca8 (patch)
tree05a70fcd0fab639b49aa86f70471a7d0aaef9ab0 /tests/test_threadpool.c
parent6264dbf02d196cf3332c67a47eba11e69e359cc9 (diff)
Unit tests: Fix unit test description strings.
Analyzing the code shows that the unit test summary and description strings should not end with a new-line character. Where these strings are used in the code a new-line is provided for output. Change-Id: I129284f5e7ca93d82532334076da4c462d3d9fba
Diffstat (limited to 'tests/test_threadpool.c')
-rw-r--r--tests/test_threadpool.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_threadpool.c b/tests/test_threadpool.c
index 79b369d94..f5b1073de 100644
--- a/tests/test_threadpool.c
+++ b/tests/test_threadpool.c
@@ -858,7 +858,7 @@ AST_TEST_DEFINE(threadpool_auto_increment)
info->description =
"Create an empty threadpool and push a task to it. Once the task is\n"
"pushed, the threadpool should add three threads and be able to\n"
- "handle the task. The threads should then go idle\n";
+ "handle the task. The threads should then go idle";
return AST_TEST_NOT_RUN;
case TEST_EXECUTE:
break;
@@ -972,7 +972,7 @@ AST_TEST_DEFINE(threadpool_max_size)
info->description =
"Create an empty threadpool and push a task to it. Once the task is\n"
"pushed, the threadpool should attempt to grow by three threads, but the\n"
- "pool's restrictions should only allow two threads to be added.\n";
+ "pool's restrictions should only allow two threads to be added.";
return AST_TEST_NOT_RUN;
case TEST_EXECUTE:
break;
@@ -1043,7 +1043,7 @@ AST_TEST_DEFINE(threadpool_reactivation)
info->description =
"Push a task into a threadpool. Make sure the task executes and the\n"
"thread goes idle. Then push a second task and ensure that the thread\n"
- "awakens and executes the second task.\n";
+ "awakens and executes the second task.";
return AST_TEST_NOT_RUN;
case TEST_EXECUTE:
break;
@@ -1250,7 +1250,7 @@ AST_TEST_DEFINE(threadpool_task_distribution)
info->summary = "Test that tasks are evenly distributed to threads";
info->description =
"Push two tasks into a threadpool. Ensure that each is handled by\n"
- "a separate thread\n";
+ "a separate thread";
return AST_TEST_NOT_RUN;
case TEST_EXECUTE:
break;
@@ -1346,7 +1346,7 @@ AST_TEST_DEFINE(threadpool_more_destruction)
"Push two tasks into a threadpool. Set the threadpool size to 4\n"
"Ensure that there are 2 active and 2 idle threads. Then shrink the\n"
"threadpool down to 1 thread. Ensure that the thread leftover is active\n"
- "and ensure that both tasks complete.\n";
+ "and ensure that both tasks complete.";
return AST_TEST_NOT_RUN;
case TEST_EXECUTE:
break;
@@ -1456,7 +1456,7 @@ AST_TEST_DEFINE(threadpool_serializer)
info->category = "/main/threadpool/";
info->summary = "Test that serializers";
info->description =
- "Ensures that tasks enqueued to a serialize execute in sequence.\n";
+ "Ensures that tasks enqueued to a serialize execute in sequence.";
return AST_TEST_NOT_RUN;
case TEST_EXECUTE:
break;
@@ -1570,7 +1570,7 @@ AST_TEST_DEFINE(threadpool_serializer_dupe)
info->summary = "Test that serializers are uniquely named";
info->description =
"Creating two serializers with the same name should\n"
- "result in error.\n";
+ "result in error.";
return AST_TEST_NOT_RUN;
case TEST_EXECUTE:
break;