[asterisk-commits] dlee: branch dlee/stasis-core r381811 - /team/dlee/stasis-core/tests/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Feb 19 17:11:27 CST 2013
Author: dlee
Date: Tue Feb 19 17:11:24 2013
New Revision: 381811
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=381811
Log:
Change test_category to /stasis/core
Modified:
team/dlee/stasis-core/tests/test_stasis.c
Modified: team/dlee/stasis-core/tests/test_stasis.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/stasis-core/tests/test_stasis.c?view=diff&rev=381811&r1=381810&r2=381811
==============================================================================
--- team/dlee/stasis-core/tests/test_stasis.c (original)
+++ team/dlee/stasis-core/tests/test_stasis.c Tue Feb 19 17:11:24 2013
@@ -38,6 +38,8 @@
#include "asterisk/stasis.h"
#include "asterisk/test.h"
+static const char *test_category = "/stasis/core/";
+
AST_TEST_DEFINE(message_type)
{
RAII_VAR(struct stasis_message_type *, uut, NULL, ao2_cleanup);
@@ -45,7 +47,7 @@
switch (cmd) {
case TEST_INIT:
info->name = __func__;
- info->category = "/main/stasis/";
+ info->category = test_category;
info->summary = "Test basic message_type functions";
info->description = "Test basic message_type functions";
return AST_TEST_NOT_RUN;
@@ -72,7 +74,7 @@
switch (cmd) {
case TEST_INIT:
info->name = __func__;
- info->category = "/main/stasis/";
+ info->category = test_category;
info->summary = "Test basic message functions";
info->description = "Test basic message functions";
return AST_TEST_NOT_RUN;
@@ -215,7 +217,7 @@
switch (cmd) {
case TEST_INIT:
info->name = __func__;
- info->category = "/main/stasis/";
+ info->category = test_category;
info->summary = "Test simple subscriptions";
info->description = "Test simple subscriptions";
return AST_TEST_NOT_RUN;
@@ -260,7 +262,7 @@
switch (cmd) {
case TEST_INIT:
info->name = __func__;
- info->category = "/main/stasis/";
+ info->category = test_category;
info->summary = "Test simple subscriptions";
info->description = "Test simple subscriptions";
return AST_TEST_NOT_RUN;
@@ -313,7 +315,7 @@
switch (cmd) {
case TEST_INIT:
info->name = __func__;
- info->category = "/main/stasis/";
+ info->category = test_category;
info->summary = "Test sending events to a parent topic";
info->description = "Test sending events to a parent topic.\n"
"This test creates three topics (one parent, two children)\n"
@@ -413,7 +415,7 @@
switch (cmd) {
case TEST_INIT:
info->name = __func__;
- info->category = "/main/stasis/";
+ info->category = test_category;
info->summary = "Test passing messages through cache topic unscathed.";
info->description = "Test passing messages through cache topic unscathed.";
return AST_TEST_NOT_RUN;
@@ -466,7 +468,7 @@
switch (cmd) {
case TEST_INIT:
info->name = __func__;
- info->category = "/main/stasis/";
+ info->category = test_category;
info->summary = "Test passing messages through cache topic unscathed.";
info->description = "Test passing messages through cache topic unscathed.";
return AST_TEST_NOT_RUN;
@@ -549,7 +551,7 @@
switch (cmd) {
case TEST_INIT:
info->name = __func__;
- info->category = "/main/stasis/";
+ info->category = test_category;
info->summary = "";
info->description = "";
return AST_TEST_NOT_RUN;
More information about the asterisk-commits
mailing list