app_queue: Revert bad ringinuse=no patch.
[asterisk/asterisk.git] / tests / test_linkedlists.c
index 6a3b9b2..2aee5c9 100644 (file)
@@ -137,7 +137,7 @@ AST_TEST_DEFINE(single_ll_tests)
        switch (cmd) {
        case TEST_INIT:
                info->name = "ll_tests";
-               info->category = "/main/linkedlists";
+               info->category = "/main/linkedlists/";
                info->summary = "single linked list unit test";
                info->description =
                        "Test the single linked list API";
@@ -150,7 +150,7 @@ AST_TEST_DEFINE(single_ll_tests)
                return AST_TEST_FAIL;
        }
 
-       if (!(bogus = alloca(sizeof(*bogus)))) {
+       if (!(bogus = ast_alloca(sizeof(*bogus)))) {
                return AST_TEST_FAIL;
        }
 
@@ -348,7 +348,7 @@ AST_TEST_DEFINE(double_ll_tests)
        switch (cmd) {
        case TEST_INIT:
                info->name = "double_ll_tests";
-               info->category = "/main/linkedlists";
+               info->category = "/main/linkedlists/";
                info->summary = "double linked list unit test";
                info->description =
                        "Test the double linked list API";
@@ -361,9 +361,7 @@ AST_TEST_DEFINE(double_ll_tests)
                return AST_TEST_FAIL;
        }
 
-       if (!(bogus = alloca(sizeof(*bogus)))) {
-               return AST_TEST_FAIL;
-       }
+       bogus = ast_alloca(sizeof(*bogus));
 
        if (AST_DLLIST_REMOVE_VERIFY(&test_list, bogus, dbl_list)) {
                ast_test_status_update(test, "AST_DLLIST_REMOVE_VERIFY should safely return NULL for missing element from empty list\n");