res/res_sorcery_memory_cache: Fix test registration issues

Again, tests now need to not end with a newline. This patch makes it so
the tests can register again, unit tests will actually pass, and we can
stop wasting time trying to figure out why builds are failing when they
really aren't failing.

Change-Id: Ide519fbeba89f413c733446c5ff7b224fc4ce840
changes/69/869/1
Matt Jordan 10 years ago
parent 4d738e9026
commit bee41eec62

@ -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 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 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 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; return AST_TEST_NOT_RUN;
case TEST_EXECUTE: case TEST_EXECUTE:
break; 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 -1\n"
"\t* Create a memory cache with a maximum object lifetime of toast\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 -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; return AST_TEST_NOT_RUN;
case TEST_EXECUTE: case TEST_EXECUTE:
break; break;
@ -1756,7 +1756,7 @@ AST_TEST_DEFINE(create_and_retrieve)
"\t* Creates a sorcery instance with a test object\n" "\t* Creates a sorcery instance with a test object\n"
"\t* Creates a test object with an id of test\n" "\t* Creates a test object with an id of test\n"
"\t* Pushes the test object into the memory cache\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; return AST_TEST_NOT_RUN;
case TEST_EXECUTE: case TEST_EXECUTE:
break; break;
@ -1838,7 +1838,7 @@ AST_TEST_DEFINE(update)
"\t* Confirms that the test object is in the cache\n" "\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* Creates a new test object with the same id of test\n"
"\t* Pushes the new test object into the memory cache\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; return AST_TEST_NOT_RUN;
case TEST_EXECUTE: case TEST_EXECUTE:
break; break;
@ -1930,7 +1930,7 @@ AST_TEST_DEFINE(delete)
"\t* Pushes the test object into the memory cache\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\n"
"\t* Deletes the test object from 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; return AST_TEST_NOT_RUN;
case TEST_EXECUTE: case TEST_EXECUTE:
break; break;
@ -2054,7 +2054,7 @@ AST_TEST_DEFINE(maximum_objects)
"\t* Deletes charlie from the memory cache\n" "\t* Deletes charlie from the memory cache\n"
"\t* Confirms that only bob is in the memory cache\n" "\t* Confirms that only bob is in the memory cache\n"
"\t* Pushes alice into 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; return AST_TEST_NOT_RUN;
case TEST_EXECUTE: case TEST_EXECUTE:
break; break;
@ -2169,7 +2169,7 @@ AST_TEST_DEFINE(expiration)
"\t* Creates a memory cache with a maximum object lifetime of 5 seconds\n" "\t* Creates a memory cache with a maximum object lifetime of 5 seconds\n"
"\t* Pushes 10 objects into the memory cache\n" "\t* Pushes 10 objects into the memory cache\n"
"\t* Waits (up to) 10 seconds for expiration to occur\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; return AST_TEST_NOT_RUN;
case TEST_EXECUTE: case TEST_EXECUTE:
break; break;
@ -2384,7 +2384,7 @@ AST_TEST_DEFINE(stale)
"\t\t* Retrieve the stale cached object\n" "\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* 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* 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; return AST_TEST_NOT_RUN;
case TEST_EXECUTE: case TEST_EXECUTE:
break; break;

Loading…
Cancel
Save