summaryrefslogtreecommitdiff
path: root/include/asterisk/test.h
diff options
context:
space:
mode:
authorDavid Vossel <dvossel@digium.com>2010-01-06 16:36:02 +0000
committerDavid Vossel <dvossel@digium.com>2010-01-06 16:36:02 +0000
commitb70bc21627e2fc77df6e975c132a103e38b95adf (patch)
treeeb35b6f81edfda17a215a760cf5af677a3b8e8d3 /include/asterisk/test.h
parentf0190a109238aaa0ea39100681465d14c36de225 (diff)
fixes test.c compile issue when TEST_FRAMEWORK is not enabled
The ast_test_status_update() function is defined in test.h. When TEST_FRAMEWORK is not enabled a macro is defined as a no-op place holder for this function. The macro did not contain the correct number of arguments. This caused a compile error. Much thanks to wdoekes for reporting the issue and supplying the patch! git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@238091 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/test.h')
-rw-r--r--include/asterisk/test.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asterisk/test.h b/include/asterisk/test.h
index 2f9b76f15..82610cdd4 100644
--- a/include/asterisk/test.h
+++ b/include/asterisk/test.h
@@ -126,7 +126,7 @@
#define AST_TEST_DEFINE(hdr) static enum ast_test_result_state attribute_unused hdr(struct ast_test_info *info, enum ast_test_command cmd, struct ast_test_args *args)
#define AST_TEST_REGISTER(cb)
#define AST_TEST_UNREGISTER(cb)
-#define ast_test_status_update(a,b)
+#define ast_test_status_update(a,b,c...)
#endif