aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-09 17:00:22 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-09 17:00:22 +0000
commitcc07f75cb0cc79c8ef0fa6aef0de86285ff52584 (patch)
tree94a60fb241f8ef7f70f5dfb872376f7eac9ae450 /tests
parent1c8d9745b8c1e2cabfcdf57ac15bb0ebd0c90d2a (diff)
Kill some startup warnings and errors and make some messages more helpful in tracking down the source.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@275105 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'tests')
-rw-r--r--tests/test_acl.c4
-rw-r--r--tests/test_aoc.c4
-rw-r--r--tests/test_app.c4
-rw-r--r--tests/test_ast_format_str_reduce.c2
-rw-r--r--tests/test_astobj2.c2
-rw-r--r--tests/test_devicestate.c2
-rw-r--r--tests/test_event.c4
-rw-r--r--tests/test_gosub.c2
-rw-r--r--tests/test_heap.c6
-rw-r--r--tests/test_pbx.c2
-rw-r--r--tests/test_sched.c2
-rw-r--r--tests/test_skel.c2
-rw-r--r--tests/test_stringfields.c2
-rw-r--r--tests/test_strings.c2
-rw-r--r--tests/test_substitution.c2
-rw-r--r--tests/test_time.c2
-rw-r--r--tests/test_utils.c8
17 files changed, 26 insertions, 26 deletions
diff --git a/tests/test_acl.c b/tests/test_acl.c
index 61bffe5de..a0f005bc2 100644
--- a/tests/test_acl.c
+++ b/tests/test_acl.c
@@ -59,7 +59,7 @@ AST_TEST_DEFINE(invalid_acl)
switch (cmd) {
case TEST_INIT:
info->name = "invalid_acl";
- info->category = "main/acl/";
+ info->category = "/main/acl/";
info->summary = "Invalid ACL unit test";
info->description =
"Ensures that garbage ACL values are not accepted";
@@ -129,7 +129,7 @@ AST_TEST_DEFINE(acl)
switch (cmd) {
case TEST_INIT:
info->name = "acl";
- info->category = "main/acl/";
+ info->category = "/main/acl/";
info->summary = "ACL unit test";
info->description =
"Tests that hosts are properly permitted or denied";
diff --git a/tests/test_aoc.c b/tests/test_aoc.c
index f6355e54f..23663ee02 100644
--- a/tests/test_aoc.c
+++ b/tests/test_aoc.c
@@ -48,7 +48,7 @@ AST_TEST_DEFINE(aoc_event_generation_test)
switch (cmd) {
case TEST_INIT:
info->name = "aoc_event_test";
- info->category = "main/aoc/";
+ info->category = "/main/aoc/";
info->summary = "Advice of Charge event generation test";
info->description =
"Creates AOC messages, verify event string matches expected results";
@@ -315,7 +315,7 @@ AST_TEST_DEFINE(aoc_encode_decode_test)
switch (cmd) {
case TEST_INIT:
info->name = "aoc_encode_decode_test";
- info->category = "main/aoc/";
+ info->category = "/main/aoc/";
info->summary = "Advice of Charge encode and decode test";
info->description =
"This tests the Advice of Charge encode and decode routines.";
diff --git a/tests/test_app.c b/tests/test_app.c
index 9962a1c59..b4b2c22e1 100644
--- a/tests/test_app.c
+++ b/tests/test_app.c
@@ -75,7 +75,7 @@ AST_TEST_DEFINE(options_parsing)
switch (cmd) {
case TEST_INIT:
info->name = "options_parsing";
- info->category = "main/app/";
+ info->category = "/main/app/";
info->summary = "App options unit test";
info->description =
"This tests the options parsing code to ensure that it behaves as expected";
@@ -161,7 +161,7 @@ AST_TEST_DEFINE(app_group)
switch (cmd) {
case TEST_INIT:
info->name = "app_group";
- info->category = "main/app/";
+ info->category = "/main/app/";
info->summary = "App group unit test";
info->description =
"This tests various app group functionality";
diff --git a/tests/test_ast_format_str_reduce.c b/tests/test_ast_format_str_reduce.c
index 8dd1f500f..c92245213 100644
--- a/tests/test_ast_format_str_reduce.c
+++ b/tests/test_ast_format_str_reduce.c
@@ -83,7 +83,7 @@ AST_TEST_DEFINE(ast_format_str_reduce_test_1)
switch (cmd) {
case TEST_INIT:
info->name = "ast_format_str_reduce_test_1";
- info->category = "main/file/";
+ info->category = "/main/file/";
info->summary = "reduce format strings";
info->description = "Reduce some format strings and make sure the results match what we expect.";
return AST_TEST_NOT_RUN;
diff --git a/tests/test_astobj2.c b/tests/test_astobj2.c
index 44b53fa88..f76f2185e 100644
--- a/tests/test_astobj2.c
+++ b/tests/test_astobj2.c
@@ -325,7 +325,7 @@ AST_TEST_DEFINE(astobj2_test_1)
switch (cmd) {
case TEST_INIT:
info->name = "astobj2_test1";
- info->category = "main/astobj2/";
+ info->category = "/main/astobj2/";
info->summary = "astobj2 test using ao2 objects, containers, callbacks, and iterators";
info->description =
"Builds ao2_containers with various item numbers, bucket sizes, cmp and hash "
diff --git a/tests/test_devicestate.c b/tests/test_devicestate.c
index 962fcda86..a44137073 100644
--- a/tests/test_devicestate.c
+++ b/tests/test_devicestate.c
@@ -220,7 +220,7 @@ AST_TEST_DEFINE(device2extenstate_test)
switch (cmd) {
case TEST_INIT:
info->name = "device2extenstate_test";
- info->category = "main/devicestate/";
+ info->category = "/main/devicestate/";
info->summary = "Tests combined devstate mapping and device to extension state mapping.";
info->description =
"Verifies device state aggregate results match the expected combined "
diff --git a/tests/test_event.c b/tests/test_event.c
index 6a557b525..82ef29bb3 100644
--- a/tests/test_event.c
+++ b/tests/test_event.c
@@ -134,7 +134,7 @@ AST_TEST_DEFINE(event_new_test)
switch (cmd) {
case TEST_INIT:
info->name = "ast_event_new_test";
- info->category = "main/event/";
+ info->category = "/main/event/";
info->summary = "Test event creation";
info->description =
"This test exercises the API calls that allow allocation "
@@ -272,7 +272,7 @@ AST_TEST_DEFINE(event_sub_test)
switch (cmd) {
case TEST_INIT:
info->name = "ast_event_subscribe_test";
- info->category = "main/event/";
+ info->category = "/main/event/";
info->summary = "Test event subscriptions";
info->description =
"This test exercises the API calls that allow subscriptions "
diff --git a/tests/test_gosub.c b/tests/test_gosub.c
index c2b510367..e69acfb17 100644
--- a/tests/test_gosub.c
+++ b/tests/test_gosub.c
@@ -85,7 +85,7 @@ AST_TEST_DEFINE(test_gosub)
switch (cmd) {
case TEST_INIT:
info->name = "gosub application";
- info->category = "apps/app_gosub/";
+ info->category = "/apps/app_gosub/";
info->summary = "Verify functionality of gosub application";
info->description =
"Verify functionality of gosub application";
diff --git a/tests/test_heap.c b/tests/test_heap.c
index de48f0ae4..3e70848d1 100644
--- a/tests/test_heap.c
+++ b/tests/test_heap.c
@@ -68,7 +68,7 @@ AST_TEST_DEFINE(heap_test_1)
switch (cmd) {
case TEST_INIT:
info->name = "heap_test_1";
- info->category = "main/heap/";
+ info->category = "/main/heap/";
info->summary = "push and pop elements";
info->description = "Push a few elements onto a heap and make sure that they come back off in the right order.";
return AST_TEST_NOT_RUN;
@@ -129,7 +129,7 @@ AST_TEST_DEFINE(heap_test_2)
switch (cmd) {
case TEST_INIT:
info->name = "heap_test_2";
- info->category = "main/heap/";
+ info->category = "/main/heap/";
info->summary = "load test";
info->description =
"Push one hundred thousand random elements on to a heap, "
@@ -204,7 +204,7 @@ AST_TEST_DEFINE(heap_test_3)
switch (cmd) {
case TEST_INIT:
info->name = "heap_test_3";
- info->category = "main/heap/";
+ info->category = "/main/heap/";
info->summary = "random element removal test";
info->description =
"Push a hundred thousand random elements on to a heap, "
diff --git a/tests/test_pbx.c b/tests/test_pbx.c
index 19c7d19f2..3ecc9e937 100644
--- a/tests/test_pbx.c
+++ b/tests/test_pbx.c
@@ -242,7 +242,7 @@ AST_TEST_DEFINE(pattern_match_test)
switch (cmd) {
case TEST_INIT:
info->name = "pattern_match_test";
- info->category = "main/pbx/";
+ info->category = "/main/pbx/";
info->summary = "Test pattern matching";
info->description = "Create a context with a bunch of extensions within. Then attempt\n"
"to match some strings to the extensions.";
diff --git a/tests/test_sched.c b/tests/test_sched.c
index 6cb9f61cb..1090e5b48 100644
--- a/tests/test_sched.c
+++ b/tests/test_sched.c
@@ -53,7 +53,7 @@ AST_TEST_DEFINE(sched_test_order)
switch (cmd) {
case TEST_INIT:
info->name = "sched_test_order";
- info->category = "main/sched/";
+ info->category = "/main/sched/";
info->summary = "Test ordering of events in the scheduler API";
info->description =
"This test ensures that events are properly ordered by the "
diff --git a/tests/test_skel.c b/tests/test_skel.c
index c1ce5e844..609e399a7 100644
--- a/tests/test_skel.c
+++ b/tests/test_skel.c
@@ -45,7 +45,7 @@ AST_TEST_DEFINE(sample_test)
switch (cmd) {
case TEST_INIT:
info->name = "sample_test";
- info->category = "main/sample/";
+ info->category = "/main/sample/";
info->summary = "sample unit test";
info->description =
"This demonstrates what is required to implement "
diff --git a/tests/test_stringfields.c b/tests/test_stringfields.c
index 3b8da6fc4..dd3f0aaa1 100644
--- a/tests/test_stringfields.c
+++ b/tests/test_stringfields.c
@@ -64,7 +64,7 @@ AST_TEST_DEFINE(string_field_test)
switch (cmd) {
case TEST_INIT:
info->name = "string_field_test";
- info->category = "main/utils/";
+ info->category = "/main/utils/";
info->summary = "Test stringfield operations";
info->description =
"This tests the stringfield API";
diff --git a/tests/test_strings.c b/tests/test_strings.c
index 2a54beb54..34062f04d 100644
--- a/tests/test_strings.c
+++ b/tests/test_strings.c
@@ -58,7 +58,7 @@ AST_TEST_DEFINE(str_test)
switch (cmd) {
case TEST_INIT:
info->name = "str_test";
- info->category = "main/strings/";
+ info->category = "/main/strings/";
info->summary = "Test dynamic string operations";
info->description = "Test setting and appending stack and heap-allocated strings";
return AST_TEST_NOT_RUN;
diff --git a/tests/test_substitution.c b/tests/test_substitution.c
index 78b4ad283..412b6f4bb 100644
--- a/tests/test_substitution.c
+++ b/tests/test_substitution.c
@@ -205,7 +205,7 @@ AST_TEST_DEFINE(test_substitution)
switch (cmd) {
case TEST_INIT:
info->name = "test_substitution";
- info->category = "main/pbx/";
+ info->category = "/main/pbx/";
info->summary = "Test variable and function substitution";
info->description =
"This test executes a variety of variable and function substitutions "
diff --git a/tests/test_time.c b/tests/test_time.c
index 61a201498..0fc778526 100644
--- a/tests/test_time.c
+++ b/tests/test_time.c
@@ -58,7 +58,7 @@ AST_TEST_DEFINE(test_timezone_watch)
switch (cmd) {
case TEST_INIT:
info->name = "timezone_watch";
- info->category = "main/stdtime/";
+ info->category = "/main/stdtime/";
info->summary = "Verify deleting timezone file purges cache";
info->description =
"Verifies that the caching engine properly destroys a timezone entry when its file is deleted.";
diff --git a/tests/test_utils.c b/tests/test_utils.c
index 78a0ba785..3f2718ff6 100644
--- a/tests/test_utils.c
+++ b/tests/test_utils.c
@@ -48,7 +48,7 @@ AST_TEST_DEFINE(uri_encode_decode_test)
switch (cmd) {
case TEST_INIT:
info->name = "uri_encode_decode_test";
- info->category = "main/utils/";
+ info->category = "/main/utils/";
info->summary = "encode and decode a hex escaped string";
info->description = "encode a string, verify encoded string matches what we expect. Decode the encoded string, verify decoded string matches the original string.";
return AST_TEST_NOT_RUN;
@@ -114,7 +114,7 @@ AST_TEST_DEFINE(md5_test)
switch (cmd) {
case TEST_INIT:
info->name = "md5_test";
- info->category = "main/utils/";
+ info->category = "/main/utils/";
info->summary = "MD5 test";
info->description =
"This test exercises MD5 calculations."
@@ -159,7 +159,7 @@ AST_TEST_DEFINE(sha1_test)
switch (cmd) {
case TEST_INIT:
info->name = "sha1_test";
- info->category = "main/utils/";
+ info->category = "/main/utils/";
info->summary = "SHA1 test";
info->description =
"This test exercises SHA1 calculations."
@@ -204,7 +204,7 @@ AST_TEST_DEFINE(base64_test)
switch (cmd) {
case TEST_INIT:
info->name = "base64_test";
- info->category = "main/utils/";
+ info->category = "/main/utils/";
info->summary = "base64 test";
info->description = "This test exercises the base64 conversions.";
return AST_TEST_NOT_RUN;