]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Kill some startup warnings and errors and make some messages more helpful in tracking...
authorTilghman Lesher <tilghman@meg.abyt.es>
Fri, 9 Jul 2010 17:00:22 +0000 (17:00 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Fri, 9 Jul 2010 17:00:22 +0000 (17:00 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@275105 65c4cc65-6c06-0410-ace0-fbb531ad65f3

34 files changed:
apps/app_meetme.c
apps/app_voicemail.c
channels/chan_iax2.c
channels/chan_sip.c
channels/sip/config_parser.c
channels/sip/dialplan_functions.c
channels/sip/reqresp_parser.c
funcs/func_math.c
funcs/func_strings.c
include/asterisk/channel.h
include/asterisk/netsock2.h
main/data.c
main/features.c
main/netsock2.c
main/test.c
res/res_agi.c
res/res_timing_kqueue.c
tests/test_acl.c
tests/test_aoc.c
tests/test_app.c
tests/test_ast_format_str_reduce.c
tests/test_astobj2.c
tests/test_devicestate.c
tests/test_event.c
tests/test_gosub.c
tests/test_heap.c
tests/test_pbx.c
tests/test_sched.c
tests/test_skel.c
tests/test_stringfields.c
tests/test_strings.c
tests/test_substitution.c
tests/test_time.c
tests/test_utils.c

index be1d36375d3c7eb6de373527cfb78b0dfa752140..831449ce6377d41c64974cb5421aaabeab7c6d58 100644 (file)
@@ -6849,7 +6849,7 @@ AST_TEST_DEFINE(test_meetme_data_provider)
        switch (cmd) {
        case TEST_INIT:
                info->name = "meetme_get_data_test";
-               info->category = "main/data/app_meetme/list";
+               info->category = "/main/data/app_meetme/list/";
                info->summary = "Meetme data provider unit test";
                info->description =
                        "Tests whether the Meetme data provider implementation works as expected.";
index 4e7a26e79d162253cb97347dcddf1bdae17def78..18867028bc09b00d9b1a23acdd5d87dceed4673f 100644 (file)
@@ -10359,7 +10359,7 @@ AST_TEST_DEFINE(test_voicemail_vmuser)
        switch (cmd) {
        case TEST_INIT:
                info->name = "vmuser";
-               info->category = "apps/app_voicemail/";
+               info->category = "/apps/app_voicemail/";
                info->summary = "Vmuser unit test";
                info->description =
                        "This tests passing all supported parameters to apply_options, the voicemail user config parser";
@@ -12110,7 +12110,7 @@ AST_TEST_DEFINE(test_voicemail_vmsayname)
        switch (cmd) {
        case TEST_INIT:
                info->name = "vmsayname_exec";
-               info->category = "apps/app_voicemail/";
+               info->category = "/apps/app_voicemail/";
                info->summary = "Vmsayname unit test";
                info->description =
                        "This tests passing various parameters to vmsayname";
@@ -12207,7 +12207,7 @@ AST_TEST_DEFINE(test_voicemail_msgcount)
        switch (cmd) {
        case TEST_INIT:
                info->name = "test_voicemail_msgcount";
-               info->category = "apps/app_voicemail/";
+               info->category = "/apps/app_voicemail/";
                info->summary = "Test Voicemail status checks";
                info->description =
                        "Verify that message counts are correct when retrieved through the public API";
@@ -12375,7 +12375,7 @@ AST_TEST_DEFINE(test_voicemail_notify_endl)
        switch (cmd) {
        case TEST_INIT:
                info->name = "test_voicemail_notify_endl";
-               info->category = "apps/app_voicemail/";
+               info->category = "/apps/app_voicemail/";
                info->summary = "Test Voicemail notification end-of-line";
                info->description =
                        "Verify that notification emails use a consistent end-of-line character";
index 7880e719de3cdaf1c1f2cc6a8f8195a5b041193f..7db02158165c114e9b350b6099a71ed1a802e197 100644 (file)
@@ -13887,7 +13887,7 @@ AST_TEST_DEFINE(test_iax2_peers_get)
        switch (cmd) {
                case TEST_INIT:
                        info->name = "iax2_peers_get_data_test";
-                       info->category = "main/data/iax2/peers";
+                       info->category = "/main/data/iax2/peers/";
                        info->summary = "IAX2 peers data providers unit test";
                        info->description =
                                "Tests whether the IAX2 peers data provider implementation works as expected.";
@@ -13947,7 +13947,7 @@ AST_TEST_DEFINE(test_iax2_users_get)
        switch (cmd) {
                case TEST_INIT:
                        info->name = "iax2_users_get_data_test";
-                       info->category = "main/data/iax2/users";
+                       info->category = "/main/data/iax2/users/";
                        info->summary = "IAX2 users data providers unit test";
                        info->description =
                                "Tests whether the IAX2 users data provider implementation works as expected.";
index ad6e00ab2c155ca31d1df3025741245f6e038e68..a93dea2b8298dd0f8a361a618f6467661080e67f 100644 (file)
@@ -27673,7 +27673,7 @@ AST_TEST_DEFINE(test_sip_peers_get)
        switch (cmd) {
                case TEST_INIT:
                        info->name = "sip_peers_get_data_test";
-                       info->category = "main/data/sip/peers";
+                       info->category = "/main/data/sip/peers/";
                        info->summary = "SIP peers data providers unit test";
                        info->description =
                                "Tests whether the SIP peers data provider implementation works as expected.";
index 988231f1286810e7da0fead7a527656c1dc6d7fe..659e8cecc3855e335de3e5da85e34b3b5ef8891d 100644 (file)
@@ -288,7 +288,7 @@ AST_TEST_DEFINE(sip_parse_register_line_test)
        switch (cmd) {
        case TEST_INIT:
                info->name = "sip_parse_register_line_test";
-               info->category = "channels/chan_sip/";
+               info->category = "/channels/chan_sip/";
                info->summary = "tests sip register line parsing";
                info->description =
                                                        "Tests parsing of various register line configurations. "
@@ -696,7 +696,7 @@ AST_TEST_DEFINE(sip_parse_host_line_test)
        switch (cmd) {
        case TEST_INIT:
                info->name = "sip_parse_host_line_test";
-               info->category = "channels/chan_sip/";
+               info->category = "/channels/chan_sip/";
                info->summary = "tests sip.conf host line parsing";
                info->description =
                                                        "Tests parsing of various host line configurations. "
index 6e1f65b84fa5a11052cad59d6fef41e6f54e6070..e14975d5dd71977568af34aa15ed3cb670d7ca85 100644 (file)
@@ -316,7 +316,7 @@ AST_TEST_DEFINE(test_sip_rtpqos_1)
        switch (cmd) {
        case TEST_INIT:
                info->name = "test_sip_rtpqos";
-               info->category = "channels/chan_sip/";
+               info->category = "/channels/chan_sip/";
                info->summary = "Test retrieval of SIP RTP QOS stats";
                info->description =
                        "Verify values in the RTP instance structure can be accessed through the dialplan.";
index eb5c1803e43e4f3fca40ef5fc7ae27378c578651..ddfc304c68ccfe61d04791a4597eb715cb33ebba 100644 (file)
@@ -428,7 +428,7 @@ AST_TEST_DEFINE(sip_parse_uri_fully_test)
        switch (cmd) {
        case TEST_INIT:
                info->name = "sip_uri_full_parse_test";
-               info->category = "channels/chan_sip/";
+               info->category = "/channels/chan_sip/";
                info->summary = "tests sip full uri parsing";
                info->description =
                        "Tests full parsing of various URIs "
@@ -501,7 +501,7 @@ AST_TEST_DEFINE(sip_parse_uri_test)
        switch (cmd) {
        case TEST_INIT:
                info->name = "sip_uri_parse_test";
-               info->category = "channels/chan_sip/";
+               info->category = "/channels/chan_sip/";
                info->summary = "tests sip uri parsing";
                info->description =
                                                        "Tests parsing of various URIs "
@@ -758,7 +758,7 @@ AST_TEST_DEFINE(get_calleridname_test)
        switch (cmd) {
        case TEST_INIT:
                info->name = "sip_get_calleridname_test";
-               info->category = "channels/chan_sip/";
+               info->category = "/channels/chan_sip/";
                info->summary = "decodes callerid name from sip header";
                info->description = "Decodes display-name field of sip header.  Checks for valid output and expected failure cases.";
                return AST_TEST_NOT_RUN;
@@ -872,7 +872,7 @@ AST_TEST_DEFINE(get_name_and_number_test)
        switch (cmd) {
        case TEST_INIT:
                info->name = "sip_get_name_and_number_test";
-               info->category = "channels/chan_sip/";
+               info->category = "/channels/chan_sip/";
                info->summary = "Tests getting name and number from sip header";
                info->description =
                                "Runs through various test situations in which a name and "
@@ -1056,7 +1056,7 @@ AST_TEST_DEFINE(get_in_brackets_test)
        switch (cmd) {
        case TEST_INIT:
                info->name = "sip_get_in_brackets_test";
-               info->category = "channels/chan_sip/";
+               info->category = "/channels/chan_sip/";
                info->summary = "Tests getting a sip uri in <> brackets within a sip header.";
                info->description =
                                "Runs through various test situations in which a sip uri "
@@ -1266,7 +1266,7 @@ AST_TEST_DEFINE(parse_name_andor_addr_test)
        switch (cmd) {
        case TEST_INIT:
                info->name = "parse_name_andor_addr_test";
-               info->category = "channels/chan_sip/";
+               info->category = "/channels/chan_sip/";
                info->summary = "tests parsing of name_andor_addr abnf structure";
                info->description =
                        "Tests parsing of abnf name-andor-addr = name-addr / addr-spec "
@@ -1496,7 +1496,7 @@ AST_TEST_DEFINE(parse_contact_header_test)
        switch (cmd) {
        case TEST_INIT:
                info->name = "parse_contact_header_test";
-               info->category = "channels/chan_sip/";
+               info->category = "/channels/chan_sip/";
                info->summary = "tests parsing of sip contact header";
                info->description =
                        "Tests parsing of a contact header including those with multiple contacts "
@@ -1714,7 +1714,7 @@ AST_TEST_DEFINE(sip_parse_options_test)
        switch (cmd) {
        case TEST_INIT:
                info->name = "sip_parse_options_test";
-               info->category = "channels/chan_sip/";
+               info->category = "/channels/chan_sip/";
                info->summary = "Tests parsing of sip options";
                info->description =
                                                        "Tests parsing of SIP options from supported and required "
index de9120d5b36e57473eec6b2c40073787eb177f4e..f3a690c5d636ab98155854bb0a04c568766db35f 100644 (file)
@@ -464,7 +464,7 @@ AST_TEST_DEFINE(test_MATH_function)
        switch (cmd) {
        case TEST_INIT:
                info->name = "test_MATH_function";
-               info->category = "main/pbx/";
+               info->category = "/main/pbx/";
                info->summary = "Test MATH function substitution";
                info->description =
                        "Executes a series of variable substitutions using the MATH function and ensures that the expected results are received.";
index 184300d25e2920cdf3f6275dd6ad73970ac9a217..9adc3364d6d62d507ee867cdeb56f5e27d6ec7e2 100644 (file)
@@ -1454,7 +1454,7 @@ AST_TEST_DEFINE(test_FILTER)
        switch (cmd) {
        case TEST_INIT:
                info->name = "func_FILTER_test";
-               info->category = "funcs/func_strings/";
+               info->category = "/funcs/func_strings/";
                info->summary = "Test FILTER function";
                info->description = "Verify FILTER behavior";
                return AST_TEST_NOT_RUN;
index 0ea2cb11a4e08ced2bd3f9bbb448fa6dfdb8c721..c61513065b9c348c67f5032e9100db33e39784f6 100644 (file)
@@ -753,10 +753,10 @@ struct ast_channel {
        unsigned int flags;                             /*!< channel flags of AST_FLAG_ type */
        int alertpipe[2];
        format_t nativeformats;         /*!< Kinds of data this channel can natively handle */
-       format_t readformat;            /*!< Requested read format */
-       format_t writeformat;           /*!< Requested write format */
-       format_t rawreadformat;         /*!< Raw read format */
-       format_t rawwriteformat;        /*!< Raw write format */
+       format_t readformat;            /*!< Requested read format (after translation) */
+       format_t writeformat;           /*!< Requested write format (after translation) */
+       format_t rawreadformat;         /*!< Raw read format (before translation) */
+       format_t rawwriteformat;        /*!< Raw write format (before translation) */
        unsigned int emulate_dtmf_duration;             /*!< Number of ms left to emulate DTMF for */
 #ifdef HAVE_EPOLL
        int epfd;
index dd4fba97eea2a0fa60e45f2323abe003bac0a840..e7121cb949592d72a691b946ce998e0889430838 100644 (file)
@@ -293,7 +293,8 @@ int ast_sockaddr_resolve(struct ast_sockaddr **addrs, const char *str,
  * \retval 0 Address is null
  * \retval non-zero The port number of the ast_sockaddr
  */
-uint16_t ast_sockaddr_port(const struct ast_sockaddr *addr);
+#define ast_sockaddr_port(addr)        _ast_sockaddr_port(addr, __FILE__, __LINE__, __PRETTY_FUNCTION__)
+uint16_t _ast_sockaddr_port(const struct ast_sockaddr *addr, const char *file, int line, const char *func);
 
 /*!
  * \since 1.8
@@ -308,7 +309,8 @@ uint16_t ast_sockaddr_port(const struct ast_sockaddr *addr);
  * \param port The port you wish to set the address to use
  * \retval void
  */
-void ast_sockaddr_set_port(struct ast_sockaddr *addr, uint16_t port);
+#define ast_sockaddr_set_port(addr,port)       _ast_sockaddr_set_port(addr,port,__FILE__,__LINE__,__PRETTY_FUNCTION__)
+void _ast_sockaddr_set_port(struct ast_sockaddr *addr, uint16_t port, const char *file, int line, const char *func);
 
 /*!
  * \since 1.8
@@ -500,8 +502,9 @@ int ast_set_qos(int sockfd, int tos, int cos, const char *desc);
  * \retval nonzero Success
  * \retval zero Failure
  */
-int ast_sockaddr_to_sin(const struct ast_sockaddr *addr,
-                       struct sockaddr_in *sin);
+#define ast_sockaddr_to_sin(addr,sin)  _ast_sockaddr_to_sin(addr,sin, __FILE__, __LINE__, __PRETTY_FUNCTION__)
+int _ast_sockaddr_to_sin(const struct ast_sockaddr *addr,
+                       struct sockaddr_in *sin, const char *file, int line, const char *func);
 
 /*!
  * \since 1.8
@@ -512,7 +515,9 @@ int ast_sockaddr_to_sin(const struct ast_sockaddr *addr,
  * \param sin The sockaddr_in to convert
  * \return an ast_sockaddr structure
  */
-void ast_sockaddr_from_sin(struct ast_sockaddr *addr, const struct sockaddr_in *sin);
+#define ast_sockaddr_from_sin(addr,sin)        _ast_sockaddr_from_sin(addr,sin, __FILE__, __LINE__, __PRETTY_FUNCTION__)
+void _ast_sockaddr_from_sin(struct ast_sockaddr *addr, const struct sockaddr_in *sin,
+               const char *file, int line, const char *func);
 
 /*@}*/
 
index 2a4559c04c02b78842bf95683fb606dff7572365..3b2c124abcf24f0d62f8f23a46a4f07567e6dff3 100644 (file)
@@ -3216,7 +3216,7 @@ AST_TEST_DEFINE(test_data_get)
        switch (cmd) {
        case TEST_INIT:
                info->name = "data_test";
-               info->category = "main/data/";
+               info->category = "/main/data/";
                info->summary = "Data API unit test";
                info->description =
                        "Tests whether data API get implementation works as expected.";
index a973004baec5516edc42aacb56a865d6d1f02189..9e0127a6e8e80d952c5c4e84044e22f6af7fcde1 100644 (file)
@@ -1169,7 +1169,7 @@ AST_TEST_DEFINE(features_test)
        switch (cmd) {
        case TEST_INIT:
                info->name = "features_test";
-               info->category = "main/features/";
+               info->category = "/main/features/";
                info->summary = "Features unit test";
                info->description =
                        "Tests whether parking respects PARKINGLOT settings";
index ba671c1dcda42e466cc94037a9c1a91c73ff997f..6066604b9abcee05f641710b17c5cfbf8387dab0 100644 (file)
@@ -328,7 +328,7 @@ int ast_sockaddr_cmp_addr(const struct ast_sockaddr *a, const struct ast_sockadd
        return ret;
 }
 
-uint16_t ast_sockaddr_port(const struct ast_sockaddr *addr)
+uint16_t _ast_sockaddr_port(const struct ast_sockaddr *addr, const char *file, int line, const char *func)
 {
        if (addr->ss.ss_family == AF_INET &&
            addr->len == sizeof(struct sockaddr_in)) {
@@ -337,11 +337,11 @@ uint16_t ast_sockaddr_port(const struct ast_sockaddr *addr)
                 addr->len == sizeof(struct sockaddr_in6)) {
                return ntohs(((struct sockaddr_in6 *)&addr->ss)->sin6_port);
        }
-       ast_log(LOG_ERROR, "Not an IPv4 nor IPv6 address, cannot get port.\n");
+       ast_log(__LOG_DEBUG, file, line, func, "Not an IPv4 nor IPv6 address, cannot get port.\n");
        return 0;
 }
 
-void ast_sockaddr_set_port(struct ast_sockaddr *addr, uint16_t port)
+void _ast_sockaddr_set_port(struct ast_sockaddr *addr, uint16_t port, const char *file, int line, const char *func)
 {
        if (addr->ss.ss_family == AF_INET &&
            addr->len == sizeof(struct sockaddr_in)) {
@@ -350,7 +350,7 @@ void ast_sockaddr_set_port(struct ast_sockaddr *addr, uint16_t port)
                 addr->len == sizeof(struct sockaddr_in6)) {
                ((struct sockaddr_in6 *)&addr->ss)->sin6_port = htons(port);
        } else {
-               ast_log(LOG_ERROR,
+               ast_log(__LOG_DEBUG, file, line, func,
                        "Not an IPv4 nor IPv6 address, cannot set port.\n");
        }
 }
@@ -466,8 +466,8 @@ int ast_set_qos(int sockfd, int tos, int cos, const char *desc)
        return res;
 }
 
-int ast_sockaddr_to_sin(const struct ast_sockaddr *addr,
-                       struct sockaddr_in *sin)
+int _ast_sockaddr_to_sin(const struct ast_sockaddr *addr,
+                       struct sockaddr_in *sin, const char *file, int line, const char *func)
 {
        if (ast_sockaddr_isnull(addr)) {
                memset(sin, 0, sizeof(*sin));
@@ -475,24 +475,25 @@ int ast_sockaddr_to_sin(const struct ast_sockaddr *addr,
        }
 
        if (addr->len != sizeof(*sin)) {
-               ast_log(LOG_ERROR, "Bad address cast to IPv4\n");
+               ast_log(__LOG_ERROR, file, line, func, "Bad address cast to IPv4\n");
                return 0;
        }
 
        if (addr->ss.ss_family != AF_INET) {
-               ast_log(LOG_DEBUG, "Address family is not AF_INET\n");
+               ast_log(__LOG_DEBUG, file, line, func, "Address family is not AF_INET\n");
        }
 
        *sin = *(struct sockaddr_in *)&addr->ss;
        return 1;
 }
 
-void ast_sockaddr_from_sin(struct ast_sockaddr *addr, const struct sockaddr_in *sin)
+void _ast_sockaddr_from_sin(struct ast_sockaddr *addr, const struct sockaddr_in *sin,
+               const char *file, int line, const char *func)
 {
        memcpy(&addr->ss, sin, sizeof(*sin));
 
        if (addr->ss.ss_family != AF_INET) {
-               ast_log(LOG_DEBUG, "Address family is not AF_INET\n");
+               ast_log(__LOG_DEBUG, file, line, func, "Address family is not AF_INET\n");
        }
 
        addr->len = sizeof(*sin);
index f35dbdb21ae66dfe46b31cad10a19cc3c7133759..ad5c16f5b30f16f23c3d03f315a40179267e5f6e 100644 (file)
@@ -548,7 +548,7 @@ static struct ast_test *test_alloc(ast_test_cb_t *cb)
        }
 
        if (test->info.category[0] != '/' || test->info.category[strlen(test->info.category) - 1] != '/') {
-               ast_log(LOG_WARNING, "Test category is missing a leading or trailing backslash for test %s%s",
+               ast_log(LOG_WARNING, "Test category is missing a leading or trailing backslash for test %s%s\n",
                                test->info.category, test->info.name);
        }
 
index 0a46640157a8ac0b9c43dbbaf686631bfa2a7e6a..4150fe1a918ff735112d3c01112786fd30a330c7 100644 (file)
@@ -3787,7 +3787,7 @@ AST_TEST_DEFINE(test_agi_null_docs)
        switch (cmd) {
        case TEST_INIT:
                info->name = "null_agi_docs";
-               info->category = "res/agi/";
+               info->category = "/res/agi/";
                info->summary = "AGI command with no documentation";
                info->description = "Test whether an AGI command with no documentation will crash Asterisk";
                return AST_TEST_NOT_RUN;
index d6cb8336ade8f629a92ab90c1e32fe7129953a39..757fc528bffda81103ddf3bc4d93ee33e94066ad 100644 (file)
@@ -284,7 +284,7 @@ AST_TEST_DEFINE(test_kqueue_timing)
        switch (cmd) {
        case TEST_INIT:
                info->name = "test_kqueue_timing";
-               info->category = "res/res_timing_kqueue";
+               info->category = "/res/res_timing_kqueue/";
                info->summary = "Test KQueue timing interface";
                info->description = "Verify that the KQueue timing interface correctly generates timing events";
                return AST_TEST_NOT_RUN;
index 61bffe5de0baf83b61cdf13a22ace463bd7c059f..a0f005bc2fc662e3471e45d7afefb2a7228016c8 100644 (file)
@@ -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";
index f6355e54f868bc3ca469dd7ff6e451e5b4c50beb..23663ee025266208928d50a6689bb9c162c5aac4 100644 (file)
@@ -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.";
index 9962a1c591945942e29c0e43cd859475bb481de7..b4b2c22e110da19e6e6f7e2dbb0a72fbea3560f8 100644 (file)
@@ -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";
index 8dd1f500fcd68cf7b928f97f9641203381ecefe1..c92245213cfc789115fb127de00f407df05b8b8d 100644 (file)
@@ -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;
index 44b53fa88617b06e62f5d3ed03b44bd4cbcb3769..f76f2185eb1df13b0d6d0478f3a53a7424c3a4ed 100644 (file)
@@ -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 "
index 962fcda86089d2f2608c3876f8d07611ed16296c..a441370739578e29eedff74e52646c3623af7f63 100644 (file)
@@ -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 "
index 6a557b5251bd5c2ce15423618e3cfa0514aefeee..82ef29bb3716178fdc0622948eb090adb6798892 100644 (file)
@@ -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 "
index c2b510367b20e4634ef30b893c352dbc6c3efad1..e69acfb17e341bed14e942e4fcb62cf706684e99 100644 (file)
@@ -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";
index de48f0ae4da90e46935049037e68303c20681594..3e70848d1ed404ab149a5505726528cc2d46e383 100644 (file)
@@ -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, "
index 19c7d19f25c0da885f7f4e28950820ba7a52f1b3..3ecc9e937e8dc08512e90a214ab9cc9d047a178a 100644 (file)
@@ -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.";
index 6cb9f61cb0a52edf04d48590d6696602c4364dec..1090e5b488931213b8ebf3587f9f1b35aa3c6c6a 100644 (file)
@@ -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 "
index c1ce5e844d9ccb32bec87e2731845a845a0a37e8..609e399a7090426ca7a79dedfa4711ee853977d6 100644 (file)
@@ -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 "
index 3b8da6fc46c7984c3cad4f80ae961e3ed790fbc6..dd3f0aaa131a83eb3690046680c06c37e290050f 100644 (file)
@@ -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";
index 2a54beb549146e7f483767d670f1f4a09575264d..34062f04df649f82d84c2e33680df0a65b3215ea 100644 (file)
@@ -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;
index 78b4ad2838b6062a93ff7570ff9b67b76fd90f21..412b6f4bbabbaf2dd4fb1b4687449edef8e4c5a8 100644 (file)
@@ -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 "
index 61a201498d6db35ea750ed285a0c158bdc994a67..0fc778526590e98fc1fcc8397923d2bebb915eab 100644 (file)
@@ -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.";
index 78a0ba78596b154c3467ffb5d124d6b3a06b59c3..3f2718ff63a30bd80607f9244bd02ac756a09f25 100644 (file)
@@ -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;