Merged revisions 275021 via svnmerge from
[asterisk/asterisk.git] / main / test.c
index 3427bf2..f35dbdb 100644 (file)
@@ -547,6 +547,11 @@ static struct ast_test *test_alloc(ast_test_cb_t *cb)
                return test_free(test);
        }
 
+       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",
+                               test->info.category, test->info.name);
+       }
+
        if (ast_strlen_zero(test->info.summary)) {
                ast_log(LOG_WARNING, "Test %s/%s has no summary, test registration refused.\n",
                                test->info.category, test->info.name);