summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--res/res_sorcery_memory_cache.c16
-rw-r--r--tests/test_sorcery_memory_cache_thrash.c14
2 files changed, 15 insertions, 15 deletions
diff --git a/res/res_sorcery_memory_cache.c b/res/res_sorcery_memory_cache.c
index f0fc05537..33e78d12e 100644
--- a/res/res_sorcery_memory_cache.c
+++ b/res/res_sorcery_memory_cache.c
@@ -1602,7 +1602,7 @@ AST_TEST_DEFINE(open_with_valid_options)
"\t* Creates a memory cache with default configuration\n"
"\t* Creates a memory cache with a maximum object count of 10 and verifies it\n"
"\t* Creates a memory cache with a maximum object lifetime of 60 and verifies it\n"
- "\t* Creates a memory cache with a stale object lifetime of 90 and verifies it\n";
+ "\t* Creates a memory cache with a stale object lifetime of 90 and verifies it";
return AST_TEST_NOT_RUN;
case TEST_EXECUTE:
break;
@@ -1673,7 +1673,7 @@ AST_TEST_DEFINE(open_with_invalid_options)
"\t* Create a memory cache with a maximum object lifetime of -1\n"
"\t* Create a memory cache with a maximum object lifetime of toast\n"
"\t* Create a memory cache with a stale object lifetime of -1\n"
- "\t* Create a memory cache with a stale object lifetime of toast\n";
+ "\t* Create a memory cache with a stale object lifetime of toast";
return AST_TEST_NOT_RUN;
case TEST_EXECUTE:
break;
@@ -1756,7 +1756,7 @@ AST_TEST_DEFINE(create_and_retrieve)
"\t* Creates a sorcery instance with a test object\n"
"\t* Creates a test object with an id of test\n"
"\t* Pushes the test object into the memory cache\n"
- "\t* Confirms that the test object is in the cache\n";
+ "\t* Confirms that the test object is in the cache";
return AST_TEST_NOT_RUN;
case TEST_EXECUTE:
break;
@@ -1838,7 +1838,7 @@ AST_TEST_DEFINE(update)
"\t* Confirms that the test object is in the cache\n"
"\t* Creates a new test object with the same id of test\n"
"\t* Pushes the new test object into the memory cache\n"
- "\t* Confirms that the new test object has replaced the old one\n";
+ "\t* Confirms that the new test object has replaced the old one";
return AST_TEST_NOT_RUN;
case TEST_EXECUTE:
break;
@@ -1930,7 +1930,7 @@ AST_TEST_DEFINE(delete)
"\t* Pushes the test object into the memory cache\n"
"\t* Confirms that the test object is in the cache\n"
"\t* Deletes the test object from the cache\n"
- "\t* Confirms that the test object is no longer in the cache\n";
+ "\t* Confirms that the test object is no longer in the cache";
return AST_TEST_NOT_RUN;
case TEST_EXECUTE:
break;
@@ -2054,7 +2054,7 @@ AST_TEST_DEFINE(maximum_objects)
"\t* Deletes charlie from the memory cache\n"
"\t* Confirms that only bob is in the memory cache\n"
"\t* Pushes alice into the memory cache\n"
- "\t* Confirms that bob and alice are in the memory cache\n";
+ "\t* Confirms that bob and alice are in the memory cache";
return AST_TEST_NOT_RUN;
case TEST_EXECUTE:
break;
@@ -2169,7 +2169,7 @@ AST_TEST_DEFINE(expiration)
"\t* Creates a memory cache with a maximum object lifetime of 5 seconds\n"
"\t* Pushes 10 objects into the memory cache\n"
"\t* Waits (up to) 10 seconds for expiration to occur\n"
- "\t* Confirms that the objects have been removed from the cache\n";
+ "\t* Confirms that the objects have been removed from the cache";
return AST_TEST_NOT_RUN;
case TEST_EXECUTE:
break;
@@ -2384,7 +2384,7 @@ AST_TEST_DEFINE(stale)
"\t\t* Retrieve the stale cached object\n"
"\t\t* Ensure that the stale object retrieved is the same as the fresh one from earlier\n"
"\t\t* Wait for the cache to update with new data\n"
- "\t\t* Ensure that new data in the cache matches backend data\n";
+ "\t\t* Ensure that new data in the cache matches backend data";
return AST_TEST_NOT_RUN;
case TEST_EXECUTE:
break;
diff --git a/tests/test_sorcery_memory_cache_thrash.c b/tests/test_sorcery_memory_cache_thrash.c
index 8bf63a62c..2d18317a3 100644
--- a/tests/test_sorcery_memory_cache_thrash.c
+++ b/tests/test_sorcery_memory_cache_thrash.c
@@ -462,7 +462,7 @@ AST_TEST_DEFINE(low_unique_object_count_immediately_stale)
"after 1 second. It also creates 25 threads which are constantly attempting\n"
"to retrieve the objects. This test confirms that the background refreshes\n"
"being done as a result of going stale do not conflict or cause problems with\n"
- "the large number of retrieve threads.\n";
+ "the large number of retrieve threads.";
return AST_TEST_NOT_RUN;
case TEST_EXECUTE:
break;
@@ -481,7 +481,7 @@ AST_TEST_DEFINE(low_unique_object_count_immediately_expire)
info->description = "This test creates a cache with objects that are expired\n"
"after 1 second. It also creates 25 threads which are constantly attempting\n"
"to retrieve the objects. This test confirms that the expiration process does\n"
- "not cause a problem as the retrieve threads execute.\n";
+ "not cause a problem as the retrieve threads execute.";
return AST_TEST_NOT_RUN;
case TEST_EXECUTE:
break;
@@ -500,7 +500,7 @@ AST_TEST_DEFINE(low_unique_object_count_high_concurrent_updates)
info->description = "This test creates a cache with objects that are being constantly\n"
"updated and retrieved at the same time. This will create contention between all\n"
"of the threads as the write lock is held for the updates. This test confirms that\n"
- "no problems occur in this situation.\n";
+ "no problems occur in this situation.";
return AST_TEST_NOT_RUN;
case TEST_EXECUTE:
break;
@@ -520,7 +520,7 @@ AST_TEST_DEFINE(unique_objects_exceeding_maximum)
"allowed in it. The maximum number of unique objects, however, far exceeds the\n"
"the maximum number allowed in the cache. This test confirms that the cache does\n"
"not exceed the maximum and that the removal of older objects does not cause\n"
- "a problem.\n";
+ "a problem.";
return AST_TEST_NOT_RUN;
case TEST_EXECUTE:
break;
@@ -540,7 +540,7 @@ AST_TEST_DEFINE(unique_objects_exceeding_maximum_with_expire_and_stale)
"allowed in it with objects that also go stale after a period of time and expire.\n"
"A number of threads are created that constantly retrieve from the cache, causing\n"
"both stale refresh and expiration to occur. This test confirms that the combination\n"
- "of these do not present a problem.\n";
+ "of these do not present a problem.";
return AST_TEST_NOT_RUN;
case TEST_EXECUTE:
break;
@@ -559,7 +559,7 @@ AST_TEST_DEFINE(conflicting_expire_and_stale)
info->summary = "Thrash a cache with a large number of objects that expire and go stale";
info->description = "This test creates a cache with a large number of objects that expire\n"
"and go stale. As there is such a large number this ensures that both operations occur.\n"
- "This test confirms that stale refreshing and expiration do not conflict.\n";
+ "This test confirms that stale refreshing and expiration do not conflict.";
return AST_TEST_NOT_RUN;
case TEST_EXECUTE:
break;
@@ -578,7 +578,7 @@ AST_TEST_DEFINE(high_object_count_without_expiration)
info->summary = "Thrash a cache with a large number of objects";
info->description = "This test creates a cache with a large number of objects that persist.\n"
"A large number of threads are created which constantly retrieve from the cache.\n"
- "This test confirms that the large number of retrieves do not cause a problem.\n";
+ "This test confirms that the large number of retrieves do not cause a problem.";
return AST_TEST_NOT_RUN;
case TEST_EXECUTE:
break;