dect
/
asterisk
Archived
13
0
Fork 0

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: http://svn.digium.com/svn/asterisk/trunk@238091 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
dvossel 2010-01-06 16:36:02 +00:00
parent 7ac82f7eab
commit 6f136ab178
1 changed files with 1 additions and 1 deletions

View File

@ -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